nanoseconds
Deprecated
Use Duration.nanoseconds() function instead.
Replace with
import kotlin.time.Duration
Content copied to clipboard
Duration.nanoseconds(this)
Content copied to clipboard
Returns a Duration equal to this Int number of nanoseconds.
Since Kotlin
1.3Deprecated
Use Duration.nanoseconds() function instead.
Replace with
import kotlin.time.Duration
Content copied to clipboard
Duration.nanoseconds(this)
Content copied to clipboard
Returns a Duration equal to this Long number of nanoseconds.
Since Kotlin
1.3Deprecated
Use Duration.nanoseconds() function instead.
Replace with
import kotlin.time.Duration
Content copied to clipboard
Duration.nanoseconds(this)
Content copied to clipboard
Returns a Duration equal to this Double number of nanoseconds.
Since Kotlin
1.3Throws
if this Double
value is NaN
.