|
SlHelpers
|
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. | |
Measure elapsed times.