fromNanoseconds

Creates a Duration from number of nanoseconds.

Return

a Duration.

Parameters

nanoseconds

the number of nanoseconds.