nanoseconds

Common
JVM
JS
Native
1.3
@ExperimentalTime val Int.nanoseconds: Duration
(source)
Deprecated: Use Duration.nanoseconds() function instead.

Returns a Duration equal to this Int number of nanoseconds.

Common
JVM
JS
Native
1.3
@ExperimentalTime val Long.nanoseconds: Duration
(source)
Deprecated: Use Duration.nanoseconds() function instead.

Returns a Duration equal to this Long number of nanoseconds.

Common
JVM
JS
Native
1.3
@ExperimentalTime val Double.nanoseconds: Duration
(source)
Deprecated: Use Duration.nanoseconds() function instead.

Returns a Duration equal to this Double number of nanoseconds.

Exceptions

IllegalArgumentException - if this Double value is NaN.