nanoseconds
Deprecated
Warning since 1.5
Error since 1.8
Hidden since 1.9
Use 'Int.nanoseconds' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.nanoseconds
Content copied to clipboard
this.nanoseconds
Content copied to clipboard
Returns a Duration equal to this Int number of nanoseconds.
Since Kotlin
1.3Deprecated
Warning since 1.5
Error since 1.8
Hidden since 1.9
Use 'Long.nanoseconds' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.nanoseconds
Content copied to clipboard
this.nanoseconds
Content copied to clipboard
Returns a Duration equal to this Long number of nanoseconds.
Since Kotlin
1.3Deprecated
Warning since 1.5
Error since 1.8
Hidden since 1.9
Use 'Double.nanoseconds' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.nanoseconds
Content copied to clipboard
this.nanoseconds
Content copied to clipboard
Returns a Duration equal to this Double number of nanoseconds.
Since Kotlin
1.3Throws
if this Double value is NaN
.