Function

dispatch_walltime

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

Declaration

dispatch_time_t dispatch_walltime(const struct timespec *when, int64_t delta);

Parameters

when

A struct timespec to add time to. If NULL is passed, then this function uses the result of gettimeofday.

delta

Nanoseconds to add.

Return Value

Discussion

The wall clock is based on gettimeofday(_:_:).

See Also

Time Constructs

dispatch_time

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

dispatch_time_t

An abstract representation of time.

DISPATCH_WALLTIME_NOW

The current time.