ContinuousClock
A clock that measures time that always increments and does not stop incrementing while the system is asleep.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
struct ContinuousClockContinuousClock can be considered as a stopwatch style time. The frame of reference of the Instant may be bound to process launch, machine boot or some other locally defined reference point. This means that the instants are only comparable locally during the execution of a program.
This clock is suitable for high resolution measurements of execution.