mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
[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:
parent
4f4fa72695
commit
b415d1c18e
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