class StageMetricsTimer

Defined at line 44 of file ../../src/media/audio/audio_core/stage_metrics.h

A timer which accumulates a StageMetrics object to represent the total time spent between

each pair of (Start, Stop) calls. Not thread safe.

Public Methods

void StageMetricsTimer (std::string_view name)

Defined at line 46 of file ../../src/media/audio/audio_core/stage_metrics.h

void Start ()

Start running the timer.

Defined at line 49 of file ../../src/media/audio/audio_core/stage_metrics.h

void Stop ()

Stop running the timer.

Defined at line 58 of file ../../src/media/audio/audio_core/stage_metrics.h

const StageMetrics & Metrics ()

Report the current accumulated metrics.

Cannot be called while the timer is running; the timer must be stopped.

Defined at line 79 of file ../../src/media/audio/audio_core/stage_metrics.h