@@ -7,7 +7,7 @@ def sleep(seconds: Union[int, float]) -> None:
77 """
88 Delay a number of seconds.
99
10- Example: ``utime .sleep(1)``
10+ Example: ``time .sleep(1)``
1111
1212 :param seconds: The number of seconds to sleep for.
1313 Use a floating-point number to sleep for a fractional number of seconds.
@@ -18,7 +18,7 @@ def sleep_ms(ms: int) -> None:
1818 """
1919 Delay for given number of milliseconds.
2020
21- Example: ``utime .sleep_ms(1_000_000)``
21+ Example: ``time .sleep_ms(1_000_000)``
2222
2323 :param ms: The number of milliseconds delay (>= 0).
2424 """
@@ -28,7 +28,7 @@ def sleep_us(us: int) -> None:
2828 """
2929 Delay for given number of microseconds.
3030
31- Example: ``utime .sleep_us(1000)``
31+ Example: ``time .sleep_us(1000)``
3232
3333 :param us: The number of microseconds delay (>= 0).
3434 """
@@ -39,7 +39,7 @@ def ticks_ms() -> int:
3939 Get an increasing, millisecond counter with an arbitrary reference point,
4040 that wraps around after some value.
4141
42- Example: ``utime .ticks_ms()``
42+ Example: ``time .ticks_ms()``
4343
4444 :return: The counter value in milliseconds.
4545 """
@@ -50,7 +50,7 @@ def ticks_us() -> int:
5050 Get an increasing, microsecond counter with an arbitrary reference point,
5151 that wraps around after some value.
5252
53- Example: ``utime .ticks_us()``
53+ Example: ``time .ticks_us()``
5454
5555 :return: The counter value in microseconds.
5656 """
@@ -61,7 +61,7 @@ def ticks_add(ticks: int, delta: int) -> int:
6161 Offset ticks value by a given number, which can be either positive or
6262 negative.
6363
64- Example: ``utime .ticks_add(utime .ticks_ms(), 200)``
64+ Example: ``time .ticks_add(time .ticks_ms(), 200)``
6565
6666 Given a ticks value, this function allows to calculate ticks
6767 value delta ticks before or after it, following modular-arithmetic
@@ -88,10 +88,10 @@ def ticks_add(ticks: int, delta: int) -> int:
8888def ticks_diff (ticks1 : int , ticks2 : int ) -> int :
8989 """
9090 Measure ticks difference between values returned from
91- ``utime .ticks_ms()`` or ``ticks_us()``, as a signed value
91+ ``time .ticks_ms()`` or ``ticks_us()``, as a signed value
9292 which may wrap around.
9393
94- Example: ``utime .ticks_diff(scheduled_time, now)``
94+ Example: ``time .ticks_diff(scheduled_time, now)``
9595
9696 :param ticks1: The value to subtract from
9797 :param ticks2: The value to subtract
@@ -103,7 +103,7 @@ def ticks_diff(ticks1: int, ticks2: int) -> int:
103103 patterns, among them:
104104
105105 Polling with timeout. In this case, the order of events is known, and you
106- will deal only with positive results of :func:`utime .ticks_diff()`::
106+ will deal only with positive results of :func:`time .ticks_diff()`::
107107
108108 # Wait for GPIO pin to be asserted, but at most 500us
109109 start = time.ticks_us()
@@ -112,7 +112,7 @@ def ticks_diff(ticks1: int, ticks2: int) -> int:
112112 raise TimeoutError
113113
114114
115- Scheduling events. In this case, :func:`utime .ticks_diff()` result may be
115+ Scheduling events. In this case, :func:`time .ticks_diff()` result may be
116116 negative if an event is overdue::
117117
118118 # This code snippet is not optimized
0 commit comments