mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-27 22:31:12 +08:00
PEP 553 and PEP 564 (#1846)
* Add `breakpoint` to builtins (PEP 553) * Add new `time` functions (PEP 564)
This commit is contained in:
committed by
Jelle Zijlstra
parent
33039f913e
commit
3e00a8f8e1
@@ -92,3 +92,11 @@ if sys.version_info >= (3, 3):
|
||||
def clock_getres(clk_id: int) -> float: ... # Unix only
|
||||
def clock_gettime(clk_id: int) -> float: ... # Unix only
|
||||
def clock_settime(clk_id: int, time: float) -> None: ... # Unix only
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def clock_gettime_ns(clock_id: int) -> int: ...
|
||||
def clock_settime_ns(clock_id: int, time: int) -> int: ...
|
||||
def monotonic_ns() -> int: ...
|
||||
def perf_counter_ns() -> int: ...
|
||||
def process_time_ns() -> int: ...
|
||||
def time_ns() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user