Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
nanoseconds
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Int.nanoseconds: Duration
(source)
Deprecated: Use 'Int.nanoseconds' extension property from Duration.Companion instead.
Returns a Duration equal to this Int number of nanoseconds.
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Long.nanoseconds: Duration
(source)
Deprecated: Use 'Long.nanoseconds' extension property from Duration.Companion instead.
Returns a Duration equal to this Long number of nanoseconds.
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Double.nanoseconds: Duration
(source)
Deprecated: Use 'Double.nanoseconds' extension property from Duration.Companion instead.
Returns a Duration equal to this Double number of nanoseconds.
Exceptions
IllegalArgumentException
- if this Double value is NaN
.