Skip to content

bpo-40192: Use thread_cputime for time.thread_time to improve resolution#19381

Merged
vstinner merged 4 commits intopython:masterfrom
isidentical:bpo-40192
May 16, 2020
Merged

bpo-40192: Use thread_cputime for time.thread_time to improve resolution#19381
vstinner merged 4 commits intopython:masterfrom
isidentical:bpo-40192

Conversation

@isidentical
Copy link
Copy Markdown
Member

@isidentical isidentical commented Apr 5, 2020

Comment thread Modules/timemodule.c
Comment thread Modules/timemodule.c
Comment thread Modules/timemodule.c Outdated
@bedevere-bot
Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Comment thread Modules/timemodule.c Outdated
Comment thread Doc/whatsnew/3.9.rst Outdated
Co-authored-by: Victor Stinner <[email protected]>
@isidentical
Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again

@bedevere-bot
Copy link
Copy Markdown

Thanks for making the requested changes!

@vstinner: please review the changes made to this pull request.

@bedevere-bot bedevere-bot requested a review from vstinner May 15, 2020 16:16
@isidentical
Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again

@bedevere-bot
Copy link
Copy Markdown

Thanks for making the requested changes!

@vstinner: please review the changes made to this pull request.

@vstinner vstinner merged commit 4541086 into python:master May 16, 2020
@vstinner
Copy link
Copy Markdown
Member

Merged, thanks @isidentical!

@isidentical
Copy link
Copy Markdown
Member Author

Thank you for the review @vstinner!

arturoescaip pushed a commit to arturoescaip/cpython that referenced this pull request May 24, 2020
…ion (pythonGH-19381)

On AIX, time.thread_time() is now implemented with thread_cputime()
which has nanosecond resolution, rather than
clock_gettime(CLOCK_THREAD_CPUTIME_ID) which has a resolution of 10 ms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants