summaryrefslogtreecommitdiffstats
path: root/Doc/library/time.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/time.rst')
-rw-r--r--Doc/library/time.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
index 63d45fd..fcee551 100644
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -226,7 +226,7 @@ The module defines the following functions and data items:
The earliest date for which it can generate a time is platform-dependent.
-.. function:: steady()
+.. function:: steady(strict=False)
.. index::
single: benchmarking
@@ -236,6 +236,11 @@ The module defines the following functions and data items:
adjusted. The reference point of the returned value is undefined so only the
difference of consecutive calls is valid.
+ If available, a monotonic clock is used. By default, if *strict* is False,
+ the function falls back to another clock if the monotonic clock failed or is
+ not available. If *strict* is True, raise an :exc:`OSError` on error or
+ :exc:`NotImplementedError` if no monotonic clock is available.
+
.. versionadded:: 3.3