SlHelpers
Loading...
Searching...
No Matches
SlHelpers::Measure< Rep, Period > Class Template Reference

Measure elapsed times. More...

#include <Misc.h>

Public Member Functions

void reset (TimePoint point=Clock::now()) noexcept
 Reset to count from point (or now).
Dur elapsed () const noexcept
 Returns the duration it took from the construction (or last reset()).
Dur lap () noexcept
 Returns the duration it took from the construction (or last reset()) and reset.

Static Public Member Functions

template<typename Func, typename... Args>
static Dur profile (Func &&func, Args &&... args)
 Run func with args and return how long it took.

Detailed Description

template<typename Rep = double, typename Period = std::milli>
class SlHelpers::Measure< Rep, Period >

Measure elapsed times.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/helpers/Misc.h