nanoseconds

val Int.nanoseconds: Duration

Returns a Duration equal to this Int number of nanoseconds.

Since Kotlin

1.3

val Long.nanoseconds: Duration

Returns a Duration equal to this Long number of nanoseconds.

Since Kotlin

1.3

val Double.nanoseconds: Duration

Returns a Duration equal to this Double number of nanoseconds.

Since Kotlin

1.3

Throws

if this Double value is NaN.