TimeSource

A source of time for measuring time intervals.

The only operation provided by the time source is markNow. It returns a TimeMark, which can be used to query the elapsed time later.

Since Kotlin

1.3

See also

Inheritors

Types

Link copied to clipboard
object Companion
Since Kotlin 1.3
Link copied to clipboard

The most precise time source available in the platform.

Since Kotlin 1.3

Functions

Link copied to clipboard
abstract 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