Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-115637 clarify that time.perf_counter cannot go backwards#115638

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
anarcat wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromanarcat:patch-1

Conversation

anarcat
Copy link

@anarcatanarcat commentedFeb 18, 2024
edited by github-actionsbot
Loading

I'm not completely sure about this, but it seems to me this counter isalso designed to avoid jumping backwards on (say) daylight saving or clock changes. It's kind of hinted to in the current description, but reading PEP 418 it's very clear that it's part of the intention, as it falls back to time.monotonic() apart from onnt.


📚 Documentation preview 📚:https://cpython-previews--115638.org.readthedocs.build/

@ghost
Copy link

ghost commentedFeb 18, 2024
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

I'm not completely sure about this, but it seems to me this counter is *also* designed to avoid jumping backwards on (say) daylight saving or clock changes. It's kind of hinted to in the current description, but reading PEP 418 it's very clear that it's part of the intention, as it falls back to time.monotonic() apart from on `nt`.
@willingc
Copy link
Contributor

@arnarcat Thanks for the draft PR. Given your discussion with@vstinner on the issue, do you want to move this out of draft or close the PR?

@anarcat
Copy link
Author

i'm not sure. i guess i'm waiting on other folks to weigh in on the issue first...

willingc reacted with thumbs up emoji

@vstinner
Copy link
Member

See also issuegh-88494.

I created PRgh-116781 to use QueryPerformanceCounter() for time.monotonic().

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@pgansslepganssleAwaiting requested review from pgansslepganssle is a code owner

@abalkinabalkinAwaiting requested review from abalkinabalkin is a code owner

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip news
Projects
Status: Todo
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@anarcat@willingc@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp