A high-resolution timer class.
Constructs a default timer which is initialized as stopped.
Constructs a default timer which is initialized as running unless startOnConstruction is false.
Begins timing. Optional offsetSeconds parameter allows a relative offset.
Returns the elapsed seconds if the timer is running, or the total time between calls to start() and stop() if it is stopped.
Ends timing.
Resumes timing without resetting the timer.
Returns whether the timer is currently running.