81 UTIL_THROW(
"Attempt to restart an active Timer");
93 UTIL_THROW(
"Attempt to stop an inactive Timer");
95 time_ += double(end - begin_)/double(CLOCKS_PER_SEC);
117 {
return isRunning_; }
File containing preprocessor macros for error handling.
double time()
Get the accumulated time, in seconds.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
void stop()
Stop the clock, increment time.
Utility classes for scientific computation.
void clear()
Set accumulated time to zero.
bool isRunning()
Is the timer running?
void start()
Start the clock.