Monotonic

The most precise time source available in the platform.

This time source returns its readings from a source of monotonic time when it is available in a target platform, and resorts to a non-monotonic time source otherwise.

Since Kotlin

1.3

Functions

Link copied to clipboard
open override fun markNow(): TimeMark

Marks a point in time on this time source.

Since Kotlin 1.3
Link copied to clipboard

Executes the given function block and returns the duration of elapsed time interval.

Since Kotlin 1.3
Link copied to clipboard

Executes the given block and returns an instance of TimedValue class, containing both the result of function execution and the duration of elapsed time interval.

Since Kotlin 1.3
Link copied to clipboard
open override fun toString(): String
Since Kotlin 1.3