gh-63207: Update time.time documentation after #116822 (#136068)

This commit is contained in:
Stan Ulbrych 2025-06-30 17:10:24 +01:00 committed by GitHub
parent a87f3e0282
commit 486587da42
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