<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/SuspendingClock",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:12_Concurrency15SuspendingClockV"
  },
  "title" : "SuspendingClock"
}
-->

# SuspendingClock

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

```
struct SuspendingClock
```

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)