From 79b44b618321cc2e4d69fe107e070de6f2c58634 Mon Sep 17 00:00:00 2001 From: Grace Date: Wed, 3 Apr 2024 10:45:07 +0100 Subject: [PATCH] ticks_cpu doc --- lang/en/typeshed/stdlib/time.pyi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lang/en/typeshed/stdlib/time.pyi b/lang/en/typeshed/stdlib/time.pyi index 598c483..d4da912 100644 --- a/lang/en/typeshed/stdlib/time.pyi +++ b/lang/en/typeshed/stdlib/time.pyi @@ -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