mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
#4810: document "--" option separator in timeit help.
This commit is contained in:
parent
bd534f0349
commit
794f5b3559
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ the Python Cookbook, published by O'Reilly.
|
||||||
Library usage: see the Timer class.
|
Library usage: see the Timer class.
|
||||||
|
|
||||||
Command line usage:
|
Command line usage:
|
||||||
python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [statement]
|
python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [--] [statement]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-n/--number N: how many times to execute 'statement' (default: see below)
|
-n/--number N: how many times to execute 'statement' (default: see below)
|
||||||
|
@ -19,6 +19,7 @@ Options:
|
||||||
-c/--clock: use time.clock() (default on Windows)
|
-c/--clock: use time.clock() (default on Windows)
|
||||||
-v/--verbose: print raw timing results; repeat for more digits precision
|
-v/--verbose: print raw timing results; repeat for more digits precision
|
||||||
-h/--help: print this usage message and exit
|
-h/--help: print this usage message and exit
|
||||||
|
--: separate options from statement, use when statement starts with -
|
||||||
statement: statement to be timed (default 'pass')
|
statement: statement to be timed (default 'pass')
|
||||||
|
|
||||||
A multi-line statement may be given by specifying each line as a
|
A multi-line statement may be given by specifying each line as a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue