Skip to content

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

Merged
ambv merged 2 commits into
python:mainfrom
corona10:bpo-45429-news
Nov 18, 2021
Merged

bpo-45429: Merge whatsnew about time.sleep#29589
ambv merged 2 commits into
python:mainfrom
corona10:bpo-45429-news

Conversation

@corona10

@corona10 corona10 commented Nov 17, 2021

Copy link
Copy Markdown
Member

Comment thread Doc/whatsnew/3.11.rst Outdated
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
Copy Markdown
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
Copy Markdown
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
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
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