8000 gh-105052:update timeit function's description by Cherrymelon · Pull Request #105060 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-105052:update timeit function's description #105060

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

Merged
merged 9 commits into from
Aug 27, 2023
Prev Previous commit
Next Next commit
Update Lib/timeit.py
  • Loading branch information
terryjreedy authored Aug 27, 2023
commit 27be587cbb42ebd3f431a051c5a8c19b22e0a1a4
4 changes: 2 additions & 2 deletions Lib/timeit.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def timeit(self, number=default_number):

To be precise, this executes the setup statement once, and
then returns the time it takes to execute the main statement
a number of times, as a float measured in seconds if using default
timer.Thus,time unit could be changed if giving other timer. The
a number of times, as a float measured in seconds if using the default
timer. Thus, the time unit could be changed if using other timer. The
argument is the number of times through the loop, defaulting
to one million. The main statement, the setup statement and
the timer function to be used are passed to the constructor.
Expand Down
0