Contents

dispatch_time

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

Declaration

extern 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

A new dispatch_time_t.

Discussion

The default clock is based on mach_absolute_time.

See Also

Time Constructs