Package kotlin. time
Experimental API for representing Duration values and measuring time intervals.
Experimental API for representing Duration values and measuring time intervals.
Experimental API for representing Duration values and measuring time intervals.
Experimental API for representing Duration values and measuring time intervals.
Experimental API for representing Duration values and measuring time intervals.
Types
An abstract class used to implement time sources that return their readings as Double values in the specified unit.
Since Kotlin
An abstract class used to implement time sources that return their readings as Long values in the specified unit.
Since Kotlin
Represents the amount of time one instant of time is away from another instant.
Since Kotlin
The list of possible time measurement units, in which a duration can be expressed.
Since Kotlin
This annotation marks the experimental preview of the standard library API for measuring time and working with durations.
Since Kotlin
A time source that has programmatically updatable readings. It is useful as a predictable source of time in tests.
Since Kotlin
Data class representing a result of executing an action, along with the duration of elapsed time interval.
Since Kotlin
Represents a time point notched on a particular TimeSource. Remains bound to the time source it was taken from and allows querying for the duration of time elapsed from that point (see the function elapsedNow).
Since Kotlin
A source of time for measuring time intervals.
Since Kotlin
Functions
Executes the given function block and returns the duration of elapsed time interval.
Since Kotlin
Executes the given function block and returns an instance of TimedValue class, containing both the result of the function execution and the duration of elapsed time interval.
Since Kotlin
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
Since Kotlin
Since Kotlin
Since Kotlin
Converts kotlin.time.Duration value to java.time.Duration value.
Since Kotlin
Converts java.time.Duration value to kotlin.time.Duration value.