◐ Shell
reader mode source ↗
Skip to content

bpo-31803: Remove time.clock()#4018

Closed
vstinner wants to merge 2 commits into
python:masterfrom
vstinner:time_clock
Closed

bpo-31803: Remove time.clock()#4018
vstinner wants to merge 2 commits into
python:masterfrom
vstinner:time_clock

Conversation

@vstinner

@vstinner vstinner commented Oct 17, 2017

Copy link
Copy Markdown
Member
  • Remove time.clock() function
  • time.get_clock_info() doesn't accept 'clock' anymore
  • Document the removal in What's New in Python 3.7
  • Replace time.clock() with time.perf_counter() in the profile
    module, in turtledemo, and in ctypes tests.

https://bugs.python.org/issue31803

* Remove time.clock() function
* time.get_clock_info() doesn't accept 'clock' anymore
* Document the removal in What's New in Python 3.7
* Replace time.clock() with time.perf_counter() in the profile
  module, in turtledemo, and in ctypes tests.
This option wasn't implemented, documented, nor tested.
@vstinner

Copy link
Copy Markdown
Member Author

I merged my PR #4020 which emits a deprecation warning. Let's wait for Pyhon 3.8 to remove time.clock(). I abandon this PR.

@vstinner vstinner closed this Oct 17, 2017
@vstinner vstinner deleted the time_clock branch October 17, 2017 21:47
@vstinner

Copy link
Copy Markdown
Member Author

Thanks for the review @dianaclarke anyway ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants