mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
parent
a87f3e0282
commit
486587da42
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