27 #ifndef TOOLS_CHRONO_H
28 #define TOOLS_CHRONO_H
76 double accumulatedTime;
79 double getTimeInMilliseconds()
const;
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
friend std::ostream & operator<<(std::ostream &, const Chrono)
print the value of the chrono on the stream
Definition: Chrono.cpp:164
double get() const
if running, get the value (start time - now) without stopping the chrono, else get (start time - stop...
Definition: Chrono.cpp:141