Abstract
Abstract
elapsedReturns the elapsed milliseconds since the initial value
Abstract
initialReturns the initial value, or undefined
Abstract
lastAbstract
timespanReturns the millisecond period from the oldest and newest value. Returns NaN if there's no initial/last values
Abstract
onReset tracker
Adds a value, returning computed result.
At this point, we check if the buffer is larger than resetAfterSamples
. If so, reset()
is called.
If not, we check sampleLimit
. If the buffer is twice as large as sample limit, trimStore()
is
called to take it down to sample limit, and onTrimmed()
is called.
Abstract
trim
Base tracker class