Optional
opts: TrackedValueOptsProtected
debugReadonly
idReturns the elapsed time, in milliseconds since the instance was created
Returns number of recorded values (this can include the initial value)
Tracks a value
When trimmed, recomputes to set total/min/max to be based on current values.
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.
Rest
...p: number[]
A
Tracker
that tracks interval between calls tomark()