summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.3.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:06:09 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:06:09 (GMT)
commite0be4232971edca23438cc3d79761141f2de124f (patch)
tree7149c8f35615c64e122de1478900f5e8cb516c04 /Doc/whatsnew/3.3.rst
parent92b958420e90b5e98c795db75693310cb9317f95 (diff)
downloadcpython-e0be4232971edca23438cc3d79761141f2de124f.zip
cpython-e0be4232971edca23438cc3d79761141f2de124f.tar.gz
cpython-e0be4232971edca23438cc3d79761141f2de124f.tar.bz2
Close #10278: Add clock_getres(), clock_gettime() and CLOCK_xxx constants to
the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic clock
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r--Doc/whatsnew/3.3.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 6a378a9..6ae8315 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -272,6 +272,16 @@ New module: :mod:`faulthandler`.
* :envvar:`PYTHONFAULTHANDLER`
* :option:`-X` ``faulthandler``
+time
+----
+
+* The :mod:`time` module has new :func:`~time.clock_getres` and
+ :func:`~time.clock_gettime` functions and ``CLOCK_xxx`` constants.
+ :func:`~time.clock_gettime` can be used with :data:`time.CLOCK_MONOTONIC` to
+ get a monotonic clock.
+
+ (Contributed by Victor Stinner in :issue:`10278`)
+
ftplib
------