-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.concurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresstandard libraryArea: Standard library umbrellaArea: Standard library umbrella
Description
Description
On Windows, the implementation of SuspendingClock
is the same as the implementation of ContinuousClock
. Both use QueryPerformanceCounter()
which tracks time while sleeping—that is, it is continuous, not suspending.
Steps to reproduce
On Windows, create a SuspendingClock
instance and get the current instant. Sleep the computer for a long time. Wake it and get the current instant again. Note that the long sleep is accounted for.
Expected behavior
The suspending clock should not account for the time spent sleeping.
Environment
- Swift compiler version info
- Xcode version info
- Deployment target:
Metadata
Metadata
Assignees
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.concurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresstandard libraryArea: Standard library umbrellaArea: Standard library umbrella