René's URL Explorer Experiment


Title: gh-88494: Use QueryPerformanceCounter() for time.monotonic() by vstinner · Pull Request #116781 · python/cpython · GitHub

Open Graph Title: gh-88494: Use QueryPerformanceCounter() for time.monotonic() by vstinner · Pull Request #116781 · python/cpython

X Title: gh-88494: Use QueryPerformanceCounter() for time.monotonic() by vstinner · Pull Request #116781 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: On Windows, time.monotonic() now uses the QueryPerformanceCounter() clock to have a resolution better than 1 us, instead of the GetTickCount64() clock which has a resolution of 15.6 ms. Issue: t...

X Description: On Windows, time.monotonic() now uses the QueryPerformanceCounter() clock to have a resolution better than 1 us, instead of the GetTickCount64() clock which has a resolution of 15.6 ms. Issue: t...

Opengraph URL: https://github.com/python/cpython/pull/116781

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4b09e872-41e1-9755-2bd0-1582b0e97f4b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBED2:366857:1BCBF45:2630549:6A4EBFB8
html-safe-nonce65246369ac5f4f12711c64baacec7df579a7b4c23ee27347256926643036423a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUQyOjM2Njg1NzoxQkNCRjQ1OjI2MzA1NDk6NkE0RUJGQjgiLCJ2aXNpdG9yX2lkIjoiMzQxODEwNDM1NjU2NTU5ODEzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2d155c5b6491736a241efc3a5c49dfe9fcfe83446a091738f28ca9639a411ba1
hovercard-subject-tagpull_request:1771651799
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/116781/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/396160a082ace5210023453b43c505c26ec55b0f0e683933a8f6501c0af78e3f/python/cpython/pull/116781
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/396160a082ace5210023453b43c505c26ec55b0f0e683933a8f6501c0af78e3f/python/cpython/pull/116781
og:image:altOn Windows, time.monotonic() now uses the QueryPerformanceCounter() clock to have a resolution better than 1 us, instead of the GetTickCount64() clock which has a resolution of 15.6 ms. Issue: t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/116781#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F116781
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F116781
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/116781
Reloadhttps://github.com/python/cpython/pull/116781
Reloadhttps://github.com/python/cpython/pull/116781
Please reload this pagehttps://github.com/python/cpython/pull/116781
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/116781
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:QPChttps://github.com/vstinner/cpython/tree/QPC
Conversationhttps://github.com/python/cpython/pull/116781
Commits1 (1)https://github.com/python/cpython/pull/116781/commits
Checkshttps://github.com/python/cpython/pull/116781/checks
Files changedhttps://github.com/python/cpython/pull/116781/files
gh-88494: Use QueryPerformanceCounter() for time.monotonic()https://github.com/python/cpython/pull/116781#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:QPChttps://github.com/vstinner/cpython/tree/QPC
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 14, 2024https://github.com/python/cpython/pull/116781#issue-2185746780
Please reload this pagehttps://github.com/python/cpython/pull/116781
time.monotonic() should use a different clock source on Windows #88494https://github.com/python/cpython/issues/88494
https://cpython-previews--116781.org.readthedocs.build/https://cpython-previews--116781.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/116781
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
abalkinhttps://github.com/abalkin
pgansslehttps://github.com/pganssle
code ownershttps://github.com/python/cpython/blob/a18c9854e8c255981f07c0a1c1503253f85b7540/.github/CODEOWNERS#L127
March 14, 2024 08:33https://github.com/python/cpython/pull/116781#event-12114360288
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 14, 2024https://github.com/python/cpython/pull/116781#event-12114360872
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 14, 2024 https://github.com/python/cpython/pull/116781#ref-issue-1199059711
time.monotonic() should use a different clock source on Windows #88494 https://github.com/python/cpython/issues/88494
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 14, 2024 https://github.com/python/cpython/pull/116781#ref-pullrequest-2141194092
gh-115637 clarify that time.perf_counter cannot go backwards #115638 https://github.com/python/cpython/pull/115638
https://github.com/vstinner
pythongh-88494https://github.com/python/cpython/issues/88494
: Use QueryPerformanceCounter() for time.monotonic()https://github.com/python/cpython/pull/116781/commits/28d23573a63a29e9aff1d550c2c604f9b19e80c8
28d2357https://github.com/python/cpython/pull/116781/commits/28d23573a63a29e9aff1d550c2c604f9b19e80c8
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
force-pushedhttps://github.com/python/cpython/compare/84632e9f4b7503375c5543e80d102cf70253b6f5..28d23573a63a29e9aff1d550c2c604f9b19e80c8
84632e9https://github.com/python/cpython/commit/84632e9f4b7503375c5543e80d102cf70253b6f5
28d2357https://github.com/python/cpython/commit/28d23573a63a29e9aff1d550c2c604f9b19e80c8
Compare https://github.com/python/cpython/compare/84632e9f4b7503375c5543e80d102cf70253b6f5..28d23573a63a29e9aff1d550c2c604f9b19e80c8
March 14, 2024 08:37https://github.com/python/cpython/pull/116781#event-12114417087
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 14, 2024https://github.com/python/cpython/pull/116781#issuecomment-1997064401
#115638https://github.com/python/cpython/pull/115638
gh-115637https://github.com/python/cpython/issues/115637
Please reload this pagehttps://github.com/python/cpython/pull/116781
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
846ad5ahttps://github.com/python/cpython/commit/846ad5a26ac0ff988a3fceec8f8e830f68bdf48a
Mar 14, 2024https://github.com/python/cpython/pull/116781#event-12120401490
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
March 14, 2024 15:42https://github.com/python/cpython/pull/116781#event-12120401717
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 14, 2024https://github.com/python/cpython/pull/116781#event-12120402420
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 14, 2024https://github.com/python/cpython/pull/116781#issuecomment-1997815440
Please reload this pagehttps://github.com/python/cpython/pull/116781
Please reload this pagehttps://github.com/python/cpython/pull/116781
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 15, 2024 https://github.com/python/cpython/pull/116781#ref-pullrequest-2186808889
gh-63207: Use GetSystemTimePreciseAsFileTime() in time.time() #116822 https://github.com/python/cpython/pull/116822
vstinnerhttps://github.com/vstinner
Mar 20, 2024 https://github.com/python/cpython/pull/116781#ref-commit-ae432c8
https://github.com/vstinner
pythongh-88494https://github.com/python/cpython/issues/88494
: Use QueryPerformanceCounter() for time.monotonic() (https://github.com/vstinner/cpython/commit/ae432c88b344371ac59aeb7091dce91d13275a2c
p…https://github.com/python/cpython/pull/116781
ae432c8https://github.com/vstinner/cpython/commit/ae432c88b344371ac59aeb7091dce91d13275a2c
…ython#116781https://github.com/python/cpython/pull/116781
adorilsonhttps://github.com/adorilson
Mar 25, 2024 https://github.com/python/cpython/pull/116781#ref-commit-64bd681
https://github.com/vstinner
https://github.com/adorilson
pythongh-88494https://github.com/python/cpython/issues/88494
: Use QueryPerformanceCounter() for time.monotonic() (https://github.com/adorilson/cpython/commit/64bd68155bbafd1b7c019a762d12e7279c424ffa
p…https://github.com/python/cpython/pull/116781
64bd681https://github.com/adorilson/cpython/commit/64bd68155bbafd1b7c019a762d12e7279c424ffa
…ython#116781https://github.com/python/cpython/pull/116781
diegorussohttps://github.com/diegorusso
Apr 17, 2024 https://github.com/python/cpython/pull/116781#ref-commit-1169a0a
https://github.com/vstinner
https://github.com/diegorusso
pythongh-88494https://github.com/python/cpython/issues/88494
: Use QueryPerformanceCounter() for time.monotonic() (https://github.com/diegorusso/cpython/commit/1169a0a6ae39806103d45f378c1db91bd035e0cc
p…https://github.com/python/cpython/pull/116781
1169a0ahttps://github.com/diegorusso/cpython/commit/1169a0a6ae39806103d45f378c1db91bd035e0cc
…ython#116781https://github.com/python/cpython/pull/116781
vstinnerhttps://github.com/vstinner
May 7, 2024 https://github.com/python/cpython/pull/116781#ref-commit-f10c398
https://github.com/vstinner
Fix clocks on Windows with Python 3.13https://github.com/vstinner/distributed/commit/f10c398e26d622ea72d04739744173a3e8784bb4
f10c398https://github.com/vstinner/distributed/commit/f10c398e26d622ea72d04739744173a3e8784bb4
dask#8641https://github.com/dask/distributed/issues/8641
python/cpython#116781https://github.com/python/cpython/pull/116781
python/cpython#116822https://github.com/python/cpython/pull/116822
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
May 7, 2024 https://github.com/python/cpython/pull/116781#ref-pullrequest-2283870082
Fix clocks on Windows with Python 3.13 dask/distributed#8642 https://github.com/dask/distributed/pull/8642
fjetterhttps://github.com/fjetter
May 8, 2024 https://github.com/python/cpython/pull/116781#ref-commit-e4a0545
https://github.com/vstinner
Fix clocks on Windows with Python 3.13 (https://github.com/dask/distributed/commit/e4a054505f1d584d920d6d1df2c419074de45d05
#8642https://github.com/dask/distributed/pull/8642
)https://github.com/dask/distributed/commit/e4a054505f1d584d920d6d1df2c419074de45d05
e4a0545https://github.com/dask/distributed/commit/e4a054505f1d584d920d6d1df2c419074de45d05
#8641https://github.com/dask/distributed/issues/8641
python/cpython#116781https://github.com/python/cpython/pull/116781
python/cpython#116822https://github.com/python/cpython/pull/116822
https://github.com/morotti
morottihttps://github.com/morotti
Jul 11, 2024 https://github.com/python/cpython/pull/116781#ref-pullrequest-2401106085
Use higher precision time source in retry decorator/tests and avoid flaky failures pypa/pip#12839 https://github.com/pypa/pip/pull/12839
https://github.com/MaxShvets
MaxShvetshttps://github.com/MaxShvets
Jan 23, 2025https://github.com/python/cpython/pull/116781#issuecomment-2609337046
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/116781
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jan 23, 2025https://github.com/python/cpython/pull/116781#issuecomment-2609413587
Please reload this pagehttps://github.com/python/cpython/pull/116781
https://github.com/MaxShvets
MaxShvetshttps://github.com/MaxShvets
Jan 23, 2025https://github.com/python/cpython/pull/116781#issuecomment-2609497852
Please reload this pagehttps://github.com/python/cpython/pull/116781
https://github.com/longcw
longcwhttps://github.com/longcw
Jul 1, 2025 https://github.com/python/cpython/pull/116781#ref-pullrequest-3191124796
fix schedule speech on windows when monotonic_ns resolution is rough livekit/agents#2770 https://github.com/livekit/agents/pull/2770
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F116781
https://github.com/pganssle
pganssle https://github.com/pganssle
https://github.com/abalkin
abalkin https://github.com/abalkin
Please reload this pagehttps://github.com/python/cpython/pull/116781
https://github.com/vstinner
https://github.com/MaxShvets
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.