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_; }
Timer()
Default constructor.
void stop()
Stop the clock now (internally supplied).
bool isRunning() const
Is this Timer running?
void start()
Start timing from now (internally computed).
void clear()
Reset accumulated time to zero.
double time() const
Return the accumulated time, in seconds.
static TimePoint now()
Return current time point.
File containing preprocessor macros for error handling.
Utility classes for scientific computation.