Internal Defines the MultiStageTimer with a list of timer names that represent its stages.
The statistics object that manages the timers.
Name of this MultiStageTimer.
List of timer names.
Readonly nameName of this MultiStageTimer.
List of timer names.
Gets the current stage.
Sets the current stage. If a new stage is provided, the current timer (if available) is
stopped, and the next timer is started. If the timer in the next stage is undefined,
this is equivalent to calling stop on the MultiStageTimer.
The next stage to start.
Gets the timer value for the last stage. If the MultiStageTimer did not finish its
last stage, the value is undefined.
Generated using TypeDoc
Measures a sequence of connected events, such as multiple processing stages in a function.
Remarks
Each stage is identified with a timer name, that must be a valid timer in the statistics object. Additionally, all timers within a
MultiStageTimermust be unique.Internally, the
MultiStageTimermanages a list of timers where at the end of each stage, one timer stops and the next timer starts.