Function

dispatch_time

Creates a dispatch_time_t relative to the default clock or modifies an existing dispatch_time_t.

Declaration

dispatch_time_t dispatch_time(dispatch_time_t when, int64_t delta);

Parameters

when

The dispatch_function_t value to use as the basis for a new value. Pass DISPATCH_TIME_NOW to create a new time value relative to now.

delta

The number of nanoseconds to add to the time in the when parameter.

Return Value

Discussion

The default clock is based on mach_absolute_time.

See Also

Time Constructs

dispatch_walltime

Creates a dispatch_time_t using an absolute time according to the wall clock.

dispatch_time_t

An abstract representation of time.

DISPATCH_WALLTIME_NOW

The current time.