---
title: DispatchTime
framework: dispatch
role: symbol
role_heading: Structure
path: dispatch/dispatchtime
---

# DispatchTime

A point in time relative to the default clock, with nanosecond precision.

## Declaration

```swift
struct DispatchTime
```

## Overview

Overview On Apple platforms, the default clock is based on the Mach absolute time unit.

## Topics

### Getting Well-Known Times

- [now()](dispatch/dispatchtime/now().md)
- [distantFuture](dispatch/dispatchtime/distantfuture.md)

### Creating a Dispatch Time Object

- [init(uptimeNanoseconds:)](dispatch/dispatchtime/init(uptimenanoseconds:).md)

### Getting the Time

- [rawValue](dispatch/dispatchtime/rawvalue.md)
- [uptimeNanoseconds](dispatch/dispatchtime/uptimenanoseconds.md)

### Modifying the Value

- [advanced(by:)](dispatch/dispatchtime/advanced(by:).md)
- [distance(to:)](dispatch/dispatchtime/distance(to:).md)

### Operator Functions

- [+(_:_:)](dispatch/+(_:_:)-6fmcc.md)
- [+(_:_:)](dispatch/+(_:_:)-2dcrq.md)
- [-(_:_:)](dispatch/-(_:_:)-5l4yh.md)
- [-(_:_:)](dispatch/-(_:_:)-8usj3.md)

## Relationships

### Conforms To

- [Comparable](swift/comparable.md)
- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Time Constructs

- [DispatchWallTime](dispatch/dispatchwalltime.md)
- [DispatchTimeInterval](dispatch/dispatchtimeinterval.md)
- [DispatchTimeoutResult](dispatch/dispatchtimeoutresult.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)
