40 using Clock = std::chrono::steady_clock;
41 using TimePoint = Clock::time_point;
43 typedef clock_t TimePoint;
58 void start(TimePoint begin);
72 void stop(TimePoint end);
99 static TimePoint
now();
104 using Duration = std::chrono::duration<double>;
106 typedef double Duration;
130 {
return isRunning_; }
bool isRunning()
Is this Timer running?
Timer()
Default constructor.
void stop()
Stop the clock now (internally supplied).
void start()
Start timing from now (internally computed).
void clear()
Reset accumulated time to zero.
static TimePoint now()
Return current time point.
double time()
Return the accumulated time, in seconds.
File containing preprocessor macros for error handling.
Utility classes for scientific computation.