mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
docs/*/quickref.rst: Use new semantics of ticks_diff()
This commit is contained in:
@@ -83,7 +83,7 @@ Use the :mod:`time <utime>` module::
|
||||
time.sleep_ms(500) # sleep for 500 milliseconds
|
||||
time.sleep_us(10) # sleep for 10 microseconds
|
||||
start = time.ticks_ms() # get millisecond counter
|
||||
delta = time.ticks_diff(start, time.ticks_ms()) # compute time difference
|
||||
delta = time.ticks_diff(time.ticks_ms(), start) # compute time difference
|
||||
|
||||
Timers
|
||||
------
|
||||
|
||||
Reference in New Issue
Block a user