stdlib: Add time.pthread_getcpuclockid(thread_id)

This commit is contained in:
Martin Fischer
2022-02-28 05:38:09 +01:00
committed by Jelle Zijlstra
parent 14ac9f7557
commit 9abf314a5b
5 changed files with 3 additions and 6 deletions

View File

@@ -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: ...

View File

@@ -39,4 +39,3 @@ posix.eventfd_read
posix.eventfd_write
posix.pidfd_open
posix.splice
time.pthread_getcpuclockid

View File

@@ -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

View File

@@ -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

View File

@@ -6,4 +6,3 @@ os.copy_file_range
os.pidfd_open
posix.copy_file_range
posix.pidfd_open
time.pthread_getcpuclockid