mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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 486587da42)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
e86ac72995
commit
401032a53a
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue