measureTime
@ExperimentalTime inline fun measureTime(
block: () -> Unit
): DurationExecutes the given function block and returns the duration of elapsed time interval.
The elapsed time is measured with TimeSource.Monotonic.
@ExperimentalTime inline fun TimeSource.measureTime(
block: () -> Unit
): DurationExecutes the given function block and returns the duration of elapsed time interval.
The elapsed time is measured with the specified this TimeSource instance.