Structure

DispatchWallTime

DispatchTime represents an absolute point in time according to the wall clock with microsecond precision. On Apple platforms, the default clock is based on the result of gettimeofday(2).

Topics

Initializers

init(timespec: timespec)

Creates an absolute time for a specified timespec value.

Instance Properties

let rawValue: dispatch_time_t

Returns the underlying dispatch_time_t value.

Type Properties

static let distantFuture: DispatchWallTime

Returns a time in the distant future.

Type Methods

static func now()

Returns the current time.

Operator Functions

static func !=(DispatchWallTime, DispatchWallTime)

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

static func ...(DispatchWallTime)

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

static func ...(DispatchWallTime)

Returns a partial range extending upward from a lower bound.

static func ..<(DispatchWallTime)

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

static func <=(DispatchWallTime, DispatchWallTime)

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)

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

static func >=(DispatchWallTime, DispatchWallTime)

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

Using Dispatch Time

struct DispatchTime

DispatchTime represents a point in time relative to the default clock with nanosecond precision. On Apple platforms, the default clock is based on the Mach absolute time unit.

enum DispatchTimeInterval

DispatchTimeInterval represents a number of seconds, millisconds, microseconds, or nanoseconds. You use DispatchTimeInterval values to specify the interval at which a DispatchSourceTimer fires or I/O handlers are invoked for a DispatchIO channel, as well as to increment and decrement DispatchTime values.

enum DispatchTimeoutResult

DispatchTimeoutResult indicates whether a dispatch operation finised before a specified time.

typealias dispatch_time_t

A somewhat abstract representation of time.