diff options
| author | puuu | 2016-11-07 14:47:16 +0900 |
|---|---|---|
| committer | Paul Sokolovsky | 2016-11-08 02:01:05 +0300 |
| commit | 933198c55fdc4881198139676b61ff1f621cb39a (patch) | |
| tree | 3adb26b3bfdcb5f1ccb1d03bf8b8c4cd5c35131d /docs/pyboard | |
| parent | 1cc168d48736cca9326835eefb8b5ccdc4d63718 (diff) | |
docs/*/quickref.rst: Use new semantics of ticks_diff()
Diffstat (limited to 'docs/pyboard')
| -rw-r--r-- | docs/pyboard/quickref.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pyboard/quickref.rst b/docs/pyboard/quickref.rst index 3d08ae910..5f1a3a6e6 100644 --- a/docs/pyboard/quickref.rst +++ b/docs/pyboard/quickref.rst @@ -37,7 +37,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 value of millisecond counter - delta = time.ticks_diff(start, time.ticks_ms()) # compute time difference + delta = time.ticks_diff(time.ticks_ms(), start) # compute time difference LEDs ---- |
