mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
* Rename time.steady() to time.monotonic() * On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of QueryPerformanceCounter() * time.monotonic() uses CLOCK_HIGHRES if available * Add time.get_clock_info(), time.perf_counter() and time.process_time() functions
This commit is contained in:
parent
ca6e40f12a
commit
ec89539ccc
9 changed files with 729 additions and 133 deletions
|
@ -3,7 +3,11 @@
|
|||
import sys as _sys
|
||||
import _thread
|
||||
|
||||
from time import steady as _time, sleep as _sleep
|
||||
from time import sleep as _sleep
|
||||
try:
|
||||
from time import monotonic as _time
|
||||
except ImportError:
|
||||
from time import time as _time
|
||||
from traceback import format_exc as _format_exc
|
||||
from _weakrefset import WeakSet
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue