Skip to content

Commit 79b44b6

Browse files
ticks_cpu doc
1 parent b7f91ec commit 79b44b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lang/en/typeshed/stdlib/time.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ def ticks_us() -> int:
5656
"""
5757
...
5858

59+
def ticks_cpu() -> int:
60+
"""
61+
Similar to ticks_ms and ticks_us, but with higher resolution in CPU cycles.
62+
63+
Example: ``time.ticks_cpu()``
64+
65+
:return: The counter value in CPU cycles.
66+
"""
67+
...
68+
5969
def ticks_add(ticks: int, delta: int) -> int:
6070
"""
6171
Offset ticks value by a given number, which can be either positive or

0 commit comments

Comments
 (0)