clock

fun clock(clock: Clock)

Sets a custom Clock for this metric, useful for testing or time manipulation.

Parameters

clock

The Clock instance to use for time-based operations.