SuspendingClock

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

    iOS
    16.0+
    macOS
    13.0+
    tvOS
    16.0+
    watchOS
    9.0+
    struct SuspendingClock

    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.

    Citizens in _Concurrency

    Conformances

    Types

    Type members

    Instance members

    Type features

    Instance features