TimedValue

data class TimedValue<T>(val value: T, val duration: Duration)(source)

Data class representing a result of executing an action, along with the duration of elapsed time interval.

Since Kotlin

1.3

Constructors

Link copied to clipboard
fun <T> TimedValue(value: T, duration: Duration)

Properties

Link copied to clipboard
val duration: Duration

the time elapsed to execute the action.

Since Kotlin 1.2
Link copied to clipboard
val value: T

the result of the action.

Since Kotlin 1.2