mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +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
|
@ -6,7 +6,10 @@ except ImportError:
|
|||
import dummy_threading as threading
|
||||
from collections import deque
|
||||
from heapq import heappush, heappop
|
||||
from time import steady as time
|
||||
try:
|
||||
from time import monotonic as time
|
||||
except ImportError:
|
||||
from time import time
|
||||
|
||||
__all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue