diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-04-29 00:52:39 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-04-29 00:52:39 (GMT) |
commit | 47620a661128ce91f46f01fb46e1326880365e75 (patch) | |
tree | 0018249b44f8b8471e93a9ea0f8567352a0b651f /Doc/whatsnew | |
parent | ec89539ccccd6103665a7a5c7234cf09f27c1c72 (diff) | |
download | cpython-47620a661128ce91f46f01fb46e1326880365e75.zip cpython-47620a661128ce91f46f01fb46e1326880365e75.tar.gz cpython-47620a661128ce91f46f01fb46e1326880365e75.tar.bz2 |
Close #14309: Deprecate time.clock()
Use time.perf_counter() or time.process_time() instead.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 3d63127..c6708fe 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -1188,6 +1188,9 @@ Deprecated Python modules, functions and methods the ANSI code page anymore and to support any filename. * :issue:`13988`: The :mod:`xml.etree.cElementTree` module is deprecated. The accelerator is used automatically whenever available. +* The behaviour of :func:`time.clock` depends on the platform: use the new + :func:`time.perf_counter` or :func:`time.process_time` function instead, + depending on your requirements, to have a well defined behaviour. Deprecated functions and types of the C API |