summaryrefslogtreecommitdiffstats
path: root/Doc/library/time.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-01-18 00:50:21 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-01-18 00:50:21 (GMT)
commitb94b266cfc94491eef206c082ff210d147016cbc (patch)
tree93e1d696fd477d16d4360a14718d4676345710d0 /Doc/library/time.rst
parent25d1bdc4074a93f268e40be1a8e49f003c3cbe57 (diff)
downloadcpython-b94b266cfc94491eef206c082ff210d147016cbc.zip
cpython-b94b266cfc94491eef206c082ff210d147016cbc.tar.gz
cpython-b94b266cfc94491eef206c082ff210d147016cbc.tar.bz2
Close #10278: Add time.wallclock() function, monotonic clock.
Diffstat (limited to 'Doc/library/time.rst')
-rw-r--r--Doc/library/time.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
index 668651a..757fbf3 100644
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -183,6 +183,18 @@ The module defines the following functions and data items:
.. versionadded:: 3.3
+.. function:: wallclock()
+
+ .. index::
+ single: Wallclock
+ single: benchmarking
+
+ Return the current time in fractions of a second to the system's best ability.
+ Use this when the most accurate representation of wall-clock is required, i.e.
+ when "processor time" is inappropriate. The reference point of the returned
+ value is undefined so only the difference of consecutive calls is valid.
+
+ .. versionadded: 3.3
.. function:: ctime([secs])