]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-88494: Use QueryPerformanceCounter() for time.monotonic() (#116781)
authorVictor Stinner <vstinner@python.org>
Thu, 14 Mar 2024 15:42:41 +0000 (16:42 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 15:42:41 +0000 (16:42 +0100)
commit846ad5a26ac0ff988a3fceec8f8e830f68bdf48a
tree59187e5155d80521daf817214a4b80bb139c23df
parent415cd06d724762f23b42f1ab36867b8114714684
gh-88494: Use QueryPerformanceCounter() for time.monotonic() (#116781)

On Windows, time.monotonic() now uses the QueryPerformanceCounter()
clock to have a resolution better than 1 us, instead of the
gGetTickCount64() clock which has a resolution of 15.6 ms.
Doc/library/time.rst
Doc/whatsnew/3.13.rst
Misc/NEWS.d/next/Windows/2024-03-14-09-14-21.gh-issue-88494.Bwfmp7.rst [new file with mode: 0644]
Python/pytime.c