Internal
Creates a SampledTimer
instance. Must still be added to statistics if it should be logged!
Statistics to use for management.
Name of the timer. Use colons to build a hierarchy.
Maximum samples until the statistics are reset and updated, which may destroy a median computation.
Readonly
nameName of the timer. Use colons to build a hierarchy.
The number of times the timer has reset.
true
if timer has been started.
The array of sampled values, its length cannot exceed maxNumSamples
.
Statistics to use for management.
Gets the latest measurement. This function may return undefined
if no measurement
was done.
Generated using TypeDoc
A timer that stores the last
n
samples in a ring buffer.