Skip to content

change time.time() to time.perf_counter() in docs - #7845

Merged
sklam merged 1 commit into
numba:mainfrom
Nopileos2:main
Feb 18, 2022
Merged

sklam merged 1 commit into
numba:mainfrom
Nopileos2:main

Conversation

@Nopileos2

Copy link
Copy Markdown
Contributor

Minor changes to the 5 minute guide:

  • time.perf_counter() is preferred way to measure execution time, so best to use it here since it is exactly what should be done
  • changed style of string formatting and added 's' as the unit

* time.perf_counter() is preferred way to measure execution time
* changed style of string formatting and added 's' as the unit
@gmarkall

Copy link
Copy Markdown
Member

Many thanks for the PR - I've queued it for review.

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, good to keep these examples in sync with common practice.

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Feb 18, 2022
@sklam
sklam merged commit 290bcaa into numba:main Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge doc Effort - short Short size effort needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants