Internal
An interface for a Timer class, that abstracts the basic functions of a Timer.
Implemented by SimpleTimer, SampledTimer, and MultiStageTimer.
Readonly
Optional
Samples the timer. Requires that the timer has started. This function does not modify the timer's internal state.
Current timer value. -1 if statistics are disabled.
-1
Resets value to be able to start again.
Sets the measurement value for the amount of time that has elapsed from start() to stop(). Use this function to override the timer's duration.
The timer's duration.
Starts the timer. Returns the current time, based on Performance.now().
Performance.now()
Stops the timer. Requires that the timer has started.
Generated using TypeDoc
An interface for a Timer class, that abstracts the basic functions of a Timer.
Remarks
Implemented by SimpleTimer, SampledTimer, and MultiStageTimer.