Skip to content

Commit

Permalink
ticks_cpu doc
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Apr 3, 2024
1 parent b7f91ec commit 79b44b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lang/en/typeshed/stdlib/time.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ def ticks_us() -> int:
"""
...

def ticks_cpu() -> int:
"""
Similar to ticks_ms and ticks_us, but with higher resolution in CPU cycles.
Example: ``time.ticks_cpu()``
:return: The counter value in CPU cycles.
"""
...

def ticks_add(ticks: int, delta: int) -> int:
"""
Offset ticks value by a given number, which can be either positive or
Expand Down

0 comments on commit 79b44b6

Please sign in to comment.