Skip to content

bpo-45429: Merge whatsnew about time.sleep #29589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2021
Merged

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Nov 17, 2021

Comment on lines 282 to 284
* On Windows, :func:`time.sleep` now uses a waitable timer which has a
resolution of 100 nanoseconds (10\ :sup:`-7` seconds). Previously, it had
a resolution of 1 millisecond (10\ :sup:`-3` seconds).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, you should mention "high-resolution timers" somewhere, since it's not supported by all Windows versions.

Moreover, "high-resolution timers" should also be mentioned in the time.sleep() documentation which now contains details about the imlpementation:
https://docs.python.org/dev/library/time.html#time.sleep

@ambv ambv merged commit fc4474e into python:main Nov 18, 2021
@corona10 corona10 deleted the bpo-45429-news branch November 18, 2021 06:26
@vstinner
Copy link
Member

Thanks @corona10 and @ambv, the NEWS entry now contains more details and is shoter: good ;-)

remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants