A high-resolution timer class.
Public Member Functions
Constructs a default timer which is initialized as stopped.
Timer (bool startOnConstruction)
Constructs a default timer which is initialized as running unless startOnConstruction is false.
voidstart (double offsetSeconds=0)
Begins timing. Optional offsetSeconds parameter allows a relative offset.
Resumes timing without resetting the timer.
boolisStopped () const
Returns whether the timer is currently running.