]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-63207: Update `time.time` documentation after GH-116822 (GH-136068) (#136139)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Jun 2025 16:16:27 +0000 (18:16 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Jun 2025 16:16:27 +0000 (16:16 +0000)
gh-63207: Update `time.time` documentation after GH-116822 (GH-136068)
(cherry picked from commit 486587da42dc2beda1e7807c35678f181b57a60f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/library/time.rst

index 542493a82af94d42393da3ee91101da0972b672a..29b695a9b193d6ebb36a82dc9f223b55f1ab7c7b 100644 (file)
@@ -712,13 +712,18 @@ Functions
 
    Clock:
 
-   * On Windows, call ``GetSystemTimeAsFileTime()``.
+   * On Windows, call ``GetSystemTimePreciseAsFileTime()``.
    * Call ``clock_gettime(CLOCK_REALTIME)`` if available.
    * Otherwise, call ``gettimeofday()``.
 
    Use :func:`time_ns` to avoid the precision loss caused by the :class:`float`
    type.
 
+.. versionchanged:: 3.13
+
+   On Windows, calls ``GetSystemTimePreciseAsFileTime()`` instead of
+   ``GetSystemTimeAsFileTime()``.
+
 
 .. function:: time_ns() -> int