Timer

class Timer(child: Histogram.Child, start: Long)

A utility class for measuring the duration of operations and recording the observed duration in the associated histogram.

Constructors

Link copied to clipboard
constructor(child: Histogram.Child, start: Long)

Functions

Link copied to clipboard
suspend fun observeDuration(): Double

Records the duration of the operation and returns the elapsed time.