Structure

DispatchWallTime

An absolute point in time according to the wall clock, with microsecond precision.

Declaration

struct DispatchWallTime

Topics

Getting Well-Known Times

static func now() -> DispatchWallTime

Returns the current time.

static let distantFuture: DispatchWallTime

A time in the distant future.

Creating a Dispatch Wall Time Object

init(timespec: timespec)

Creates an absolute time for a specified value.

Getting the Time

let rawValue: dispatch_time_t

The underlying time value.

Operator Functions

static func != (DispatchWallTime, DispatchWallTime) -> Bool

Returns a Boolean value indicating whether two values are not equal.

static func ... (DispatchWallTime) -> PartialRangeFrom<DispatchWallTime>

Returns a partial range extending upward from a lower bound.

static func ... (DispatchWallTime) -> PartialRangeThrough<DispatchWallTime>

Returns a partial range up to, and including, its upper bound.

static func ..< (DispatchWallTime) -> PartialRangeUpTo<DispatchWallTime>

Returns a partial range up to, but not including, its upper bound.

static func ..< (DispatchWallTime, DispatchWallTime) -> Range<DispatchWallTime>

Returns a half-open range that contains its lower bound but not its upper bound.

static func <= (DispatchWallTime, DispatchWallTime) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

static func > (DispatchWallTime, DispatchWallTime) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >= (DispatchWallTime, DispatchWallTime) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

Relationships

Conforms To

See Also

Time Constructs

struct DispatchTime

A point in time relative to the default clock, with nanosecond precision.

enum DispatchTimeInterval

A number of seconds, millisconds, microseconds, or nanoseconds.

enum DispatchTimeoutResult

A result value indicating whether a dispatch operation finished before a specified time.

typealias dispatch_time_t

An abstract representation of time.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software