Contents

nanoseconds(_:)

Construct a Duration given a number of nanoseconds represented as a BinaryInteger.

Declaration

static func nanoseconds<T>(_ nanoseconds: T) -> Duration where T : BinaryInteger

Return Value

A Duration representing a given number of nanoseconds.

Discussion

  let d: Duration = .nanoseconds(1929)