Class SampledTimerInternal

A timer that stores the last n samples in a ring buffer.

Hierarchy

Constructors

Properties

maxNumSamples: number = 1000

Maximum samples until the statistics are reset and updated, which may destroy a median computation.

name: string

Name of the timer. Use colons to build a hierarchy.

numResets: number = 0

The number of times the timer has reset.

running: boolean = false

true if timer has been started.

samples: RingBuffer<number> = ...

The array of sampled values, its length cannot exceed maxNumSamples.

statistics: Statistics

Statistics to use for management.

Accessors

  • get value(): undefined | number
  • Gets the latest measurement. This function may return undefined if no measurement was done.

    Returns undefined | number

Methods

Generated using TypeDoc