mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
stdlib: Add time.pthread_getcpuclockid(thread_id)
This commit is contained in:
committed by
Jelle Zijlstra
parent
14ac9f7557
commit
9abf314a5b
@@ -100,6 +100,9 @@ if sys.version_info >= (3, 7):
|
||||
def clock_gettime_ns(clock_id: int) -> int: ...
|
||||
def clock_settime_ns(clock_id: int, time: int) -> int: ...
|
||||
|
||||
if sys.platform == "linux":
|
||||
def pthread_getcpuclockid(thread_id: int) -> int: ...
|
||||
|
||||
def monotonic_ns() -> int: ...
|
||||
def perf_counter_ns() -> int: ...
|
||||
def process_time_ns() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user