<!--
{
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/time-and-duration",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Time"
}
-->

# Time

Measure how long an operation takes and determine schedules in the future.

## Topics

### Clocks

[`Clock`](/documentation/Swift/Clock)

A mechanism in which to measure time, and delay work until a given point
in time.

[`ContinuousClock`](/documentation/Swift/ContinuousClock)

A clock that measures time that always increments and does not stop
incrementing while the system is asleep.

[`SuspendingClock`](/documentation/Swift/SuspendingClock)

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

### Durations

[`Duration`](/documentation/Swift/Duration)

A representation of high precision time.

[`DurationProtocol`](/documentation/Swift/DurationProtocol)

A type that defines a duration for a given `InstantProtocol` type.

### Supporting Types

[`InstantProtocol`](/documentation/Swift/InstantProtocol)



---

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)