diff options
author | Antoine Pitrou <pitrou@free.fr> | 2017-11-15 21:52:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 21:52:21 (GMT) |
commit | 4bd41c9b52ea0c730e9e294caaf003e54c088c6e (patch) | |
tree | 9bb2c82cd67af88b9a3990ef081dd4b2c2f668c8 /Doc/whatsnew/3.7.rst | |
parent | 762b9571c9c8c6b036f1bf90140a1d030b3f9a01 (diff) | |
download | cpython-4bd41c9b52ea0c730e9e294caaf003e54c088c6e.zip cpython-4bd41c9b52ea0c730e9e294caaf003e54c088c6e.tar.gz cpython-4bd41c9b52ea0c730e9e294caaf003e54c088c6e.tar.bz2 |
bpo-32025: Add time.thread_time() (#4410)
* bpo-32025: Add time.thread_time()
* Add missing #endif
* Add NEWS blurb
* Add docs and whatsnew
* Address review comments
* Review comments
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index cbc166d..a2fea50 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -372,6 +372,10 @@ Add new clock identifiers: the time the system has been running and not suspended, providing accurate uptime measurement, both absolute and interval. +Added functions :func:`time.thread_time` and :func:`time.thread_time_ns` +to get per-thread CPU time measurements. +(Contributed by Antoine Pitrou in :issue:`32025`.) + unittest.mock ------------- |