Contents

microseconds(_:)

Construct a Duration given a number of seconds microseconds as a Double by converting the value into the closest attosecond scale value.

Declaration

static func microseconds(_ microseconds: Double) -> Duration

Return Value

A Duration representing a given number of microseconds.

Discussion

  let d: Duration = .microseconds(382.9)

See Also

Creating a duration