Package-level declarations
API for measuring time intervals and calculating durations.
For more information, see our Time measurement guide.
API for measuring time intervals and calculating durations.
For more information, see our Time measurement guide.
API for measuring time intervals and calculating durations.
For more information, see our Time measurement guide.
API for measuring time intervals and calculating durations.
For more information, see our Time measurement guide.
API for measuring time intervals and calculating durations.
For more information, see our Time measurement guide.
API for measuring time intervals and calculating durations.
For more information, see our Time measurement guide.
Types
An abstract class used to implement time sources that return their readings as Double values in the specified unit.
A TimeMark that can be compared for difference with other time marks obtained from the same TimeSource.WithComparableMarks time source.
Represents the amount of time one instant of time is away from another instant.
The list of possible time measurement units, in which a duration can be expressed.
This annotation marks the experimental preview of the standard library API for measuring time and working with durations.
A time source that has programmatically updatable readings. It is useful as a predictable source of time in tests.
Data class representing a result of executing an action, along with the duration of elapsed time interval.
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).
Properties
Functions
Executes the given function block and returns the duration of elapsed time interval.
Executes the given function block and returns the duration of elapsed time interval.
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.
Executes the given function block and returns an instance of TimedValue class, containing both the result of function execution and the duration of elapsed time interval.
Converts this java.util.concurrent.TimeUnit enum value to the corresponding kotlin.time.DurationUnit value.
Converts kotlin.time.Duration value to java.time.Duration value.
Converts java.time.Duration value to kotlin.time.Duration value.
Converts this kotlin.time.DurationUnit enum value to the corresponding java.util.concurrent.TimeUnit value.