diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-04-29 00:41:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-04-29 00:41:27 (GMT) |
commit | ec89539ccccd6103665a7a5c7234cf09f27c1c72 (patch) | |
tree | 5899bfa59a08ae9db3e630c2419ee87b4df6b101 /Doc/whatsnew/3.3.rst | |
parent | ca6e40f12a3145856abfe69d5cd8b97df6ebca95 (diff) | |
download | cpython-ec89539ccccd6103665a7a5c7234cf09f27c1c72.zip cpython-ec89539ccccd6103665a7a5c7234cf09f27c1c72.tar.gz cpython-ec89539ccccd6103665a7a5c7234cf09f27c1c72.tar.bz2 |
Issue #14428, #14397: Implement the PEP 418
* Rename time.steady() to time.monotonic()
* On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of
QueryPerformanceCounter()
* time.monotonic() uses CLOCK_HIGHRES if available
* Add time.get_clock_info(), time.perf_counter() and time.process_time()
functions
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 495243f..3d63127 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -1059,13 +1059,21 @@ sys time ---- -The :mod:`time` module has new functions: +The :pep:`418` added new functions to the :mod:`time` module: -* :func:`~time.clock_getres` and :func:`~time.clock_gettime` functions and - ``CLOCK_xxx`` constants. -* :func:`~time.steady`. +* :func:`~time.get_clock_info`: Get information on a clock. +* :func:`~time.monotonic`: Monotonic clock (cannot go backward), not affected + by system clock updates. +* :func:`~time.perf_counter`: Performance counter with the highest available + resolution to measure a short duration. +* :func:`~time.process_time`: Sum of the system and user CPU time of the + current process. -(Contributed by Victor Stinner in :issue:`10278`) +Other new functions: + +* :func:`~time.clock_getres`, :func:`~time.clock_gettime` and + :func:`~time.clock_settime` functions with ``CLOCK_xxx`` constants. + (Contributed by Victor Stinner in :issue:`10278`) types |