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/esp8266 | |
| parent | 1cc168d48736cca9326835eefb8b5ccdc4d63718 (diff) | |
docs/*/quickref.rst: Use new semantics of ticks_diff()
Diffstat (limited to 'docs/esp8266')
| -rw-r--r-- | docs/esp8266/quickref.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index 4a7ed3404..845a94ba7 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -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 ------ |
