6 #ifndef MYRAMATH_UTILITY_STOPWATCH_H 7 #define MYRAMATH_UTILITY_STOPWATCH_H 29 #include <myramath/MYRAMATH_EXPORT.h> 44 void stop() { total += timer.elapsed_time(); }
47 double read()
const {
return total; }
double read() const
Returns the total time accumulated over all start/stop pairs.
Definition: Stopwatch.h:47
void start()
Bookend around a function to be timed.
Definition: Stopwatch.h:43
Stopwatch()
Constructor, initializes total time to zero.
Definition: Stopwatch.h:40
A multishot timing class, delegates to Timer.
Definition: Stopwatch.h:35
Simplistic timing class, might dispatch to platform specific timers depending upon environment...
Measures elapsed time.
Definition: Timer.h:19