Duration.ofNanos

Obtains a {@code Duration} representing a number of nanoseconds. !(p) The seconds and nanoseconds are extracted from the specified nanoseconds.

@param nanos the number of nanoseconds, positive or negative @return a {@code Duration}, not null

class Duration
static
ofNanos
(
long nanos
)

Meta