Initializerswift-nio 2.72.0NIOCore
init(_:)
TimeAmount+Duration.swift:20- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
init(_ duration: Swift.Duration)
Other members in extension
Typealiases
Show obsolete interfaces (1)
Hide obsolete interfaces
Type members
static var zero: TimeAmount
The zero value for
TimeAmount
.static func hours(Int64
) -> TimeAmount Creates a new
TimeAmount
for the given amount of hours.static func microseconds(Int64
) -> TimeAmount Creates a new
TimeAmount
for the given amount of microseconds.static func milliseconds(Int64
) -> TimeAmount Creates a new
TimeAmount
for the given amount of milliseconds.static func minutes(Int64
) -> TimeAmount Creates a new
TimeAmount
for the given amount of minutes.static func nanoseconds(Int64
) -> TimeAmount Creates a new
TimeAmount
for the given amount of nanoseconds.static func seconds(Int64
) -> TimeAmount Creates a new
TimeAmount
for the given amount of seconds.static func * <T>(lhs: TimeAmount, rhs: T
) -> TimeAmount static func * <T>(lhs: T, rhs: TimeAmount
) -> TimeAmount static func + (lhs: TimeAmount, rhs: TimeAmount
) -> TimeAmount static func += (lhs: inout TimeAmount, rhs: TimeAmount
) static func - (lhs: TimeAmount, rhs: TimeAmount
) -> TimeAmount static func -= (lhs: inout TimeAmount, rhs: TimeAmount
) static func < (lhs: TimeAmount, rhs: TimeAmount
) -> Bool
Instance members
let nanoseconds: Int64
The nanoseconds representation of the
TimeAmount
.