|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
27 #ifndef TOOLS_CHRONO_H
28 #define TOOLS_CHRONO_H
82 #endif // TOOLS_CHRONO_H
double getTimeInMilliseconds() const
in milliseconds
Definition: Chrono.cpp:151
bool running
Definition: Chrono.h:98
Elapsed real-time timer. Allows one to measure elapsed real time. You can start, stop,...
Definition: Chrono.h:40
double stopValue
Definition: Chrono.h:97
friend std::ostream & operator<<(std::ostream &, const Chrono)
print the value of the chrono on the stream
Definition: Chrono.cpp:164
double accumulatedTime
Definition: Chrono.h:99
std::ostream & operator<<(std::ostream &o, const Chrono c)
Definition: Chrono.cpp:164
double stop()
stop chrono
Definition: Chrono.cpp:117
double startValue
Definition: Chrono.h:96
void reset()
reset to zero
Definition: Chrono.cpp:135
Chrono()
default constructor
Definition: Chrono.cpp:89
void hold(bool)
pause the chrono if the parameter is true
Definition: Chrono.cpp:123
double get() const
if running, get the value (start time - now) without stopping the chrono, else get (start time - stop...
Definition: Chrono.cpp:141
void start()
start at zero
Definition: Chrono.cpp:104