mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +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: ...
|
||||
|
||||
@@ -39,4 +39,3 @@ posix.eventfd_read
|
||||
posix.eventfd_write
|
||||
posix.pidfd_open
|
||||
posix.splice
|
||||
time.pthread_getcpuclockid
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
ctypes.wintypes
|
||||
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
|
||||
pwd.getpwnam
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
time.pthread_getcpuclockid
|
||||
|
||||
@@ -3,4 +3,3 @@ select.epoll.register
|
||||
# Exists at runtime, but missing from stubs
|
||||
os.copy_file_range
|
||||
posix.copy_file_range
|
||||
time.pthread_getcpuclockid
|
||||
|
||||
@@ -6,4 +6,3 @@ os.copy_file_range
|
||||
os.pidfd_open
|
||||
posix.copy_file_range
|
||||
posix.pidfd_open
|
||||
time.pthread_getcpuclockid
|
||||
|
||||
Reference in New Issue
Block a user