Skip to content

Commit 3a1e9b2

Browse files
vstinnerPranjal095
authored andcommitted
pythongh-102740: Clarify time.monotonic() "system-wide" in the doc (python#136431)
1 parent ee8dfa4 commit 3a1e9b2

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy