[3.13] gh-63207: Update time.time documentation after GH-116822 (GH-136068) (#136139)

gh-63207: Update `time.time` documentation after GH-116822 (GH-136068)
(cherry picked from commit 486587da42)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-06-30 18:16:27 +02:00 committed by GitHub
parent 4f4fa72695
commit b415d1c18e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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