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.
The function markNow of this time source returns the specialized ValueTimeMark that is an inline value class wrapping a platform-dependent time reading value.
Since Kotlin
1.2Functions
Extensions
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