summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-27 12:30:59 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-27 12:30:59 +0100
commit556e5dfd35cd3eac02986125e6dd22df77236acd (patch)
tree61d51923e3a56c637f093b0f91c48533247b3c4d
parente0f7e001e8d4422f53f30bdc7b5ee2fdf77ad72e (diff)
downloadmicropython-556e5dfd35cd3eac02986125e6dd22df77236acd.tar.gz
micropython-556e5dfd35cd3eac02986125e6dd22df77236acd.zip
docs/library/utime: Add more time functions for unix and esp8266 ports.
-rw-r--r--docs/library/utime.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/library/utime.rst b/docs/library/utime.rst
index e7fc6813dc..6dd1a147f8 100644
--- a/docs/library/utime.rst
+++ b/docs/library/utime.rst
@@ -31,20 +31,20 @@ Functions
which expresses a time as per localtime. It returns an integer which is
the number of seconds since Jan 1, 2000.
-.. only:: port_pyboard
+.. only:: port_unix or port_pyboard or port_esp8266
.. function:: sleep(seconds)
Sleep for the given number of seconds. Seconds can be a floating-point number to
sleep for a fractional number of seconds.
-.. only:: port_esp8266 or port_wipy
+.. only:: port_wipy
.. function:: sleep(seconds)
Sleep for the given number of seconds.
-.. only:: port_wipy or port_pyboard
+.. only:: port_unix or port_pyboard or port_wipy or port_esp8266
.. function:: sleep_ms(ms)
@@ -64,10 +64,14 @@ Functions
Just like ``ticks_ms`` above, but in microseconds.
+.. only:: port_wipy or port_pyboard
+
.. function:: ticks_cpu()
Similar to ``ticks_ms`` and ``ticks_us``, but with higher resolution (usually CPU clocks).
+.. only:: port_unix or port_pyboard or port_wipy or port_esp8266
+
.. function:: ticks_diff(old, new)
Measure period between consecutive calls to ticks_ms(), ticks_us(), or ticks_cpu().