---
title: dispatch_walltime
framework: dispatch
role: symbol
role_heading: Function
path: dispatch/dispatch_walltime
---

# dispatch_walltime

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

## Declaration

```occ
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

Return Value A new dispatch_time_t.

## Discussion

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

## See Also

### Time Constructs

- [dispatch_time](dispatch/dispatch_time.md)
- [dispatch_time_t](dispatch/dispatch_time_t.md)
- [DISPATCH_WALLTIME_NOW](dispatch/dispatch_walltime_now.md)
- [Wall Time Constants](dispatch/2963138-wall-time-constants.md)
