TimeInterval
-
Creates a TimeInterval from a timespec C struct.
Declaration
Swift
public init(from spec: timespec) -
Creates a TimeInterval from a timeval C struct.
Declaration
Swift
public init(from val: timeval) -
Returns a C timespec struct corresponding to this TimeInterval.
Declaration
Swift
public func toTimeSpec() -> timespec -
Returns a C timeval struct corresponding to this TimeInterval.
Declaration
Swift
public func toTimeVal() -> timeval
TimeInterval Extension Reference