Skip to content

Commit 35a541e

Browse files
committed
Add new time functions (PEP 564)
1 parent 420a22f commit 35a541e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stdlib/3/time.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,11 @@ if sys.version_info >= (3, 3):
9292
def clock_getres(clk_id: int) -> float: ... # Unix only
9393
def clock_gettime(clk_id: int) -> float: ... # Unix only
9494
def clock_settime(clk_id: int, time: float) -> None: ... # Unix only
95+
96+
if sys.version_info >= (3, 7):
97+
def clock_gettime_ns(clock_id: int) -> int: ...
98+
def clock_settime_ns(clock_id: int, time: int) -> int: ...
99+
def monotonic_ns() -> int: ...
100+
def perf_counter_ns() -> int: ...
101+
def process_time_ns() -> int: ...
102+
def time_ns() -> int: ...

0 commit comments

Comments
 (0)