glean / mozilla.telemetry.glean.private / TimingDistributionMetricType / stopAndAccumulate


fun stopAndAccumulate(timerId: GleanTimerId?): Unit

Stop tracking time for the provided metric and associated timer id. Add a count to the corresponding bucket in the timing distribution. This will record an error if no start was called.


timerId - The GleanTimerId associated with this timing. This allows for concurrent timing of events associated with different ids to the same timespan metric.