Skip to content

Commit 486587d

Browse files
gh-63207: Update time.time documentation after #116822 (#136068)
1 parent a87f3e0 commit 486587d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Doc/library/time.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,13 +712,18 @@ Functions
712712

713713
Clock:
714714

715-
* On Windows, call ``GetSystemTimeAsFileTime()``.
715+
* On Windows, call ``GetSystemTimePreciseAsFileTime()``.
716716
* Call ``clock_gettime(CLOCK_REALTIME)`` if available.
717717
* Otherwise, call ``gettimeofday()``.
718718

719719
Use :func:`time_ns` to avoid the precision loss caused by the :class:`float`
720720
type.
721721

722+
.. versionchanged:: 3.13
723+
724+
On Windows, calls ``GetSystemTimePreciseAsFileTime()`` instead of
725+
``GetSystemTimeAsFileTime()``.
726+
722727

723728
.. function:: time_ns() -> int
724729

0 commit comments

Comments
 (0)