-
-
Notifications
You must be signed in to change notification settings - Fork 35k
bpo-31803: Remove time.clock() #4018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,6 +297,16 @@ string | |
| expression pattern for braced placeholders and non-braced placeholders | ||
| separately. (Contributed by Barry Warsaw in :issue:`1198569`.) | ||
|
|
||
| time | ||
| ---- | ||
|
|
||
| The ``time.clock()`` function has been removed, it was deprecated since Python | ||
| 3.3. The function was not portable: on Windows it mesured wall-clock, whereas | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps replace:
with:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/mesured/measured |
||
| it measured CPU time on Unix. Python provides better defined clocks with better | ||
| resolution since Python 3.3: use :func:`time.perf_counter` or | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps change:
to:
|
||
| :func:`time.process_time` instead. (Contributed by Victor Stinner in | ||
| :issue:`31803`.) | ||
|
|
||
| unittest.mock | ||
| ------------- | ||
|
|
||
|
|
@@ -540,6 +550,10 @@ that may require changes to your code. | |
| Changes in the Python API | ||
| ------------------------- | ||
|
|
||
| * The ``time.clock()`` function has been removed: use :func:`time.perf_counter` or | ||
| :func:`time.process_time` instead. (Contributed by Victor Stinner in | ||
| :issue:`31803`.) | ||
|
|
||
| * :meth:`pkgutil.walk_packages` now raises ValueError if *path* is a string. | ||
| Previously an empty list was returned. (Contributed by Sanyam Khurana in | ||
| :issue:`24744`.) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/no more/no longer