summaryrefslogtreecommitdiffstats
path: root/Lib/timeit.py
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2015-04-21 23:43:33 (GMT)
committerAndrew Kuchling <amk@amk.ca>2015-04-21 23:43:33 (GMT)
commit333518e01df0ce011962ca8629e766a59316e1cb (patch)
treea70ad45819e811c872b5db7eab6649cd6e4806f6 /Lib/timeit.py
parentb6076fb13c6bf97f4fae76da478a26e0f4f24879 (diff)
downloadcpython-333518e01df0ce011962ca8629e766a59316e1cb.zip
cpython-333518e01df0ce011962ca8629e766a59316e1cb.tar.gz
cpython-333518e01df0ce011962ca8629e766a59316e1cb.tar.bz2
#15183: clarify timeit documentation to say that setup statement isn't timed
Diffstat (limited to 'Lib/timeit.py')
-rwxr-xr-xLib/timeit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py
index 9cec000..cf7446d 100755
--- a/Lib/timeit.py
+++ b/Lib/timeit.py
@@ -14,7 +14,8 @@ Command line usage:
Options:
-n/--number N: how many times to execute 'statement' (default: see below)
-r/--repeat N: how many times to repeat the timer (default 3)
- -s/--setup S: statement to be executed once initially (default 'pass')
+ -s/--setup S: statement to be executed once initially (default 'pass').
+ Execution time of this setup statement is NOT timed.
-p/--process: use time.process_time() (default is time.perf_counter())
-t/--time: use time.time() (deprecated)
-c/--clock: use time.clock() (deprecated)