Skip to content

[3.14] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) #136488

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Doc/library/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,11 @@ Functions
.. versionadded:: 3.3

.. versionchanged:: 3.5
The function is now always available and always system-wide.
The function is now always available and the clock is now the same for
all processes.

.. versionchanged:: 3.10
On macOS, the function is now system-wide.
On macOS, the clock is now the same for all processes.


.. function:: monotonic_ns() -> int
Expand All @@ -325,7 +326,8 @@ Functions

Return the value (in fractional seconds) of a performance counter, i.e. a
clock with the highest available resolution to measure a short duration. It
does include time elapsed during sleep and is system-wide. The reference
does include time elapsed during sleep. The clock is the same for all
processes. The reference
point of the returned value is undefined, so that only the difference between
the results of two calls is valid.

Expand All @@ -340,7 +342,7 @@ Functions
.. versionadded:: 3.3

.. versionchanged:: 3.10
On Windows, the function is now system-wide.
On Windows, the clock is now the same for all processes.

.. versionchanged:: 3.13
Use the same clock as :func:`time.monotonic`.
Expand Down Expand Up @@ -987,8 +989,8 @@ The following constant is the only parameter that can be sent to

.. data:: CLOCK_REALTIME

System-wide real-time clock. Setting this clock requires appropriate
privileges.
Real-time clock. Setting this clock requires appropriate privileges.
The clock is the same for all processes.

.. availability:: Unix.

Expand Down
Loading