diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-12-17 11:12:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 11:12:34 (GMT) |
commit | 3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb (patch) | |
tree | cd18c953eda772615769530acdf37042b87acaba /Doc/library/time.rst | |
parent | 8db5b54463118e5eb60cb3582e3108623f01f5df (diff) | |
download | cpython-3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb.zip cpython-3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb.tar.gz cpython-3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb.tar.bz2 |
bpo-23451: Update time.monotonic() documentation (GH-11190)
bpo-23451, bpo-22117: Python 3.5 requires Windows Vista or newer,
time.monotonic() is now always system-wide.
Diffstat (limited to 'Doc/library/time.rst')
-rw-r--r-- | Doc/library/time.rst | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst index c6a1f33..0ffce47 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -293,17 +293,9 @@ Functions The reference point of the returned value is undefined, so that only the difference between the results of consecutive calls is valid. - On Windows versions older than Vista, :func:`monotonic` detects - :c:func:`GetTickCount` integer overflow (32 bits, roll-over after 49.7 days). - It increases an internal epoch (reference time) by 2\ :sup:`32` each time - that an overflow is detected. The epoch is stored in the process-local state - and so the value of :func:`monotonic` may be different in two Python - processes running for more than 49 days. On more recent versions of Windows - and on other operating systems, :func:`monotonic` is system-wide. - .. versionadded:: 3.3 .. versionchanged:: 3.5 - The function is now always available. + The function is now always available and always system-wide. .. function:: monotonic_ns() -> int |