Interface TimerInternal

An interface for a Timer class, that abstracts the basic functions of a Timer.

Remarks

Implemented by SimpleTimer, SampledTimer, and MultiStageTimer.

Hierarchy

  • Timer

Implemented by

Properties

Methods

Properties

name: string
value?: number

Methods

  • Samples the timer. Requires that the timer has started. This function does not modify the timer's internal state.

    Returns number

    Current timer value. -1 if statistics are disabled.

  • 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.

    Parameters

    • val: undefined | number

      The timer's duration.

    Returns void

Generated using TypeDoc