From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 30 Jun 2025 16:16:08 +0000 (+0200) Subject: [3.14] gh-63207: Update `time.time` documentation after GH-116822 (GH-136068) (#136138) X-Git-Tag: v3.14.0b4~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=401032a53a37d7e63bed55b6f607d04423fc7dd5;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-63207: Update `time.time` documentation after GH-116822 (GH-136068) (#136138) 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> --- diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 542493a82af9..29b695a9b193 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -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