VPTissue Reference Manual
|
Provides a stopwatch interface to time: it accumulates time between start/stop pairs. More...
#include <Stopwatch.h>
Public Types | |
typedef T | TClock |
Public Member Functions | |
Stopwatch (std::string name="stopwatch", bool running=false) | |
Constructor initializes stopwatch. | |
T::duration | Get () const |
Returns the accumulated value without altering the stopwatch state. | |
std::string | GetName () const |
Return name of this stopwatch. | |
bool | IsRunning () const |
Reports whether stopwatch has been started. | |
Stopwatch & | Reset () |
Resets stopwatch i.e. stopwatch is stopped and time accumulator is cleared. | |
Stopwatch & | Start () |
Starts stopwatch if it was stopped. | |
Stopwatch & | Stop () |
Stops the stopwatch if it was running. | |
std::string | ToString () const |
Returns string representation of readout. | |
Provides a stopwatch interface to time: it accumulates time between start/stop pairs.
Definition at line 39 of file Stopwatch.h.