nanoseconds

Returns a Duration representing the specified value number of nanoseconds.

Since Kotlin

1.5

Returns a Duration representing the specified value number of nanoseconds.

Since Kotlin

1.5

Throws

if the provided Doublevalue is NaN.