Elapsed real-time timer.
Definition: Chrono.h:40
void reset()
reset to zero
Definition: Chrono.cpp:135
double stop()
stop chrono
Definition: Chrono.cpp:117
void start()
start at zero
Definition: Chrono.cpp:104
void hold(bool)
pause the chrono if the parameter is true
Definition: Chrono.cpp:123
Chrono()
default constructor
Definition: Chrono.cpp:89
double getTimeInMilliseconds() const
in milliseconds
Definition: Chrono.cpp:151
double stopValue
Definition: Chrono.h:74
double accumulatedTime
Definition: Chrono.h:76
friend std::ostream & operator<<(std::ostream &, const Chrono)
print the value of the chrono on the stream
Definition: Chrono.cpp:164
bool running
Definition: Chrono.h:75
double startValue
Definition: Chrono.h:73
double get() const
if running, get the value (start time - now) without stopping the chrono, else get (start time - stop...
Definition: Chrono.cpp:141