---
title: SuspendingClock
framework: swift
role: symbol
role_heading: Structure
path: swift/suspendingclock
---

# SuspendingClock

A clock that measures time that always increments but stops incrementing while the system is asleep.

## Declaration

```swift
struct SuspendingClock
```

## Overview

Overview SuspendingClock can be considered as a system awake time clock. The frame of reference of the Instant may be bound machine boot or some other locally defined reference point. This means that the instants are only comparable on the same machine in the same booted session. This clock is suitable for high resolution measurements of execution.

## Topics

### Structures

- [SuspendingClock.Instant](swift/suspendingclock/instant.md)

### Initializers

- [init()](swift/suspendingclock/init().md)

### Instance Properties

- [systemEpoch](swift/suspendingclock/systemepoch.md)

### Type Properties

- [now](swift/suspendingclock/now-swift.type.property.md)

### Default Implementations

- [Clock Implementations](swift/suspendingclock/clock-implementations.md)

## Relationships

### Conforms To

- [Clock](swift/clock.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Clocks

- [Clock](swift/clock.md)
- [ContinuousClock](swift/continuousclock.md)
