Skip to content

Fix Docu time.rst - GetSystemTimePreciseAsFileTime() and monotonic() clock #126745

Closed as duplicate

Description

@dbstf

Documentation

Fix Typo: On Windows, the .time function now uses GetSystemTimePreciseAsFileTime() [--> 1 microsecond resolution] instead of GetSystemTimeAsFileTime() [--> 15.625 millisecond resolution].

Clarification: On Windows The .monotonic functions now use the same clock as the .perf_counter functions, not vice versa.
The .perf_counter functions previously already used QueryPerformanceCounter() + QueryPerformanceFrequency() [--> 1 microsecond resolution], whereas the .monotonic functions previously used GetTickCount64() [--> 15.625 millisecond resolution].

Linked PRs

Activity

  1. added
    docsDocumentation in the Doc dir
    on Nov 12, 2024
  2. added
    3.13only security fixes
    3.14bugs and security fixes
    on Nov 12, 2024
  3. StanFromIreland commented on Jun 28, 2025

    @StanFromIreland
    Member

    The function was changed was in 1d95451, with issue #63207. I consider this to be finishing off that issue, so I will close this as a duplicate and fix it there.

    As for the clarification, there is nothing wrong currently, and it makes no sense to switch the location? You got the same feedback on the pr, which is now closed, so for convenience I will not be pulling it's commit.

  4. moved this from Todo to Done in docs issueson Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions