---
title: "init(uptimeNanoseconds:)"
framework: dispatch
role: symbol
role_heading: Initializer
path: "dispatch/dispatchtime/init(uptimenanoseconds:)"
---

# init(uptimeNanoseconds:)

Creates a time relative to the amount of time the system has been running.

## Declaration

```swift
init(uptimeNanoseconds: UInt64)
```

## Parameters

- `uptimeNanoseconds`: The number of nanoseconds since boot, excluding any time the system spent asleep.

## Discussion

Discussion On Apple platforms, this clock is the same as the value returned by mach_absolute_time when converted into nanoseconds.
