the current timer value (like the lap function of a stopwatch)
the cumulative time of all start/stop cycles so far
Sets the timer to zero.
Starts a new measuring cycle without resetting the timer.
Stops the current measuring cycle without resetting the timer.
Stops the current measuring cycle without resetting the timer.
the reading (cumulative time of all cycles so far)
Provides timer functionality.
Based on my Java class Timer (as of 2006, has been nested in Clock class) that itself had a long history of Modula2 (1987-90) and C (1994) implementations.
The timer will start immediately on construction, so it is not required to start or reset it explictely (although it does no harm). Arbitrary many start (implicit or explicit) and stop cycles can be passed through. The times measured on each cycle are cumulated and the result is returned by the reading method, while the lap method adds the time since the last stop to that result.
Copyright (C) 1987, 1989, 1990, 1994, 2006, 2015 Hans-Hermann Bode
3.0