24 explicit Stopwatch(
bool triggered =
false);
89 operator double()
const;
93 double getClock()
const;
97 bool m_triggered =
false;
98 bool m_stopped =
false;
double getTime()
Get elapsed time.
Definition Stopwatch.cpp:65
void start()
Start the timer.
Definition Stopwatch.cpp:47
Stopwatch(bool triggered=false)
Definition Stopwatch.cpp:15
bool isStopped() const
Check if timer is stopped.
Definition Stopwatch.cpp:83
void setTrigger()
Stop the timer and set the trigger.
Definition Stopwatch.cpp:59
void stop()
Stop the timer.
Definition Stopwatch.cpp:36
double reset()
Reset the timer to zero.
Definition Stopwatch.cpp:22