Content-Length: 321371 | pFad | http://github.com/python/cpython/commit/b733bf7437555e24a36f66c98dcd8c771fd197a0

5C [3.14] gh-102740: Clarify time.monotonic() "system-wide" in the doc (… · python/cpython@b733bf7 · GitHub
Skip to content

Commit b733bf7

Browse files
[3.14] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) (#136488)
gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) (cherry picked from commit 9c4d287) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 4db5675 commit b733bf7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Doc/library/time.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,11 @@ Functions
306306
.. versionadded:: 3.3
307307

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

311312
.. versionchanged:: 3.10
312-
On macOS, the function is now system-wide.
313+
On macOS, the clock is now the same for all processes.
313314

314315

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

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

@@ -340,7 +342,7 @@ Functions
340342
.. versionadded:: 3.3
341343

342344
.. versionchanged:: 3.10
343-
On Windows, the function is now system-wide.
345+
On Windows, the clock is now the same for all processes.
344346

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

988990
.. data:: CLOCK_REALTIME
989991

990-
System-wide real-time clock. Setting this clock requires appropriate
991-
privileges.
992+
Real-time clock. Setting this clock requires appropriate privileges.
993+
The clock is the same for all processes.
992994

993995
.. availability:: Unix.
994996

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/cpython/commit/b733bf7437555e24a36f66c98dcd8c771fd197a0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy