Skip to content

Commit 0a0889d

Browse files
committed
docs: make timeit autorange description more concise
The original form said basically the same thing twice.
1 parent caac966 commit 0a0889d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/library/timeit.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,9 @@ The module defines three convenience functions and a public class:
148148
Automatically determine how many times to call :meth:`.timeit`.
149149

150150
This is a convenience function that calls :meth:`.timeit` repeatedly
151-
so that the total time >= 0.2 second, returning the eventual
152-
(number of loops, time taken for that number of loops). It calls
153-
:meth:`.timeit` with increasing numbers from the sequence 1, 2, 5,
154-
10, 20, 50, ... until the time taken is at least 0.2 seconds.
151+
with increasing numbers from the sequence 1, 2, 5, 10, 20, 50, ...
152+
until the time taken is at least 0.2 seconds, returning the eventual
153+
(number of loops, time taken for that number of loops).
155154

156155
If *callback* is given and is not ``None``, it will be called after
157156
each trial with two arguments: ``callback(number, time_taken)``.

0 commit comments

Comments
 (0)