summaryrefslogtreecommitdiffstats
path: root/Lib/timeit.py
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-02-28 03:06:07 (GMT)
committerGitHub <noreply@github.com>2017-02-28 03:06:07 (GMT)
commitecf39bbc97adc0fb67654602e37d0d8313e9be9d (patch)
tree549a1bd8624b7c61fda1e97d9e928aae5bdf109c /Lib/timeit.py
parent370f7a956cef5895c93ca5a53fc26b04df973aaf (diff)
downloadcpython-ecf39bbc97adc0fb67654602e37d0d8313e9be9d.zip
cpython-ecf39bbc97adc0fb67654602e37d0d8313e9be9d.tar.gz
cpython-ecf39bbc97adc0fb67654602e37d0d8313e9be9d.tar.bz2
bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)
Diffstat (limited to 'Lib/timeit.py')
-rwxr-xr-x[-rw-r--r--]Lib/timeit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py
index 38c2b1f..418166d 100644..100755
--- a/Lib/timeit.py
+++ b/Lib/timeit.py
@@ -206,7 +206,7 @@ class Timer:
return r
def autorange(self, callback=None):
- """Return the number of loops so that total time >= 0.2.
+ """Return the number of loops and time taken so that total time >= 0.2.
Calls the timeit method with increasing numbers from the sequence
1, 2, 5, 10, 20, 50, ... until the time taken is at least 0.2