A simple facility to measure time intervals with microsecond resolution.
Timestamp::TimeDiff elapsed() const;
Returns the elapsed time in microseconds since the stopwatch started.
int elapsedSeconds() const;
Returns the number of seconds elapsed since the stopwatch started.
Resets the stopwatch.
static Timestamp::TimeVal resolution();
Returns the resolution of the stopwatch.
Resets and starts the stopwatch.
Starts (or restarts) the stopwatch.
Stops or pauses the stopwatch.