Contents

dispatch_walltime

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

Declaration

extern 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

A new dispatch_time_t.

Discussion

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

See Also

Time Constructs