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.
Name 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.
Resets the timers across all stages.
Starts the MultiStageTimer at its first stage.
Stops the MultiStageTimer. Returns the measurement of the last stage, which may be
undefined if not all stages started.
Generated using TypeDoc
Measures a sequence of connected events, such as multiple processing stages in a function.
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.