W3cubDocs

/Kotlin

TimedValue

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@ExperimentalTime data class TimedValue<T>

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

Constructors

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

<init>

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

TimedValue(value: T, duration: Duration)

Properties

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

duration

the time elapsed to execute the action.

val duration: Duration
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

value

the result of the action.

val value: T

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.time/-timed-value/index.html