mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +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 @@
 | 
			
		|||
Library usage: see the Timer class.
 | 
			
		||||
 | 
			
		||||
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:
 | 
			
		||||
  -n/--number N: how many times to execute 'statement' (default: see below)
 | 
			
		||||
| 
						 | 
				
			
			@ -19,6 +19,7 @@
 | 
			
		|||
  -c/--clock: use time.clock() (default on Windows)
 | 
			
		||||
  -v/--verbose: print raw timing results; repeat for more digits precision
 | 
			
		||||
  -h/--help: print this usage message and exit
 | 
			
		||||
  --: separate options from statement, use when statement starts with -
 | 
			
		||||
  statement: statement to be timed (default 'pass')
 | 
			
		||||
 | 
			
		||||
A multi-line statement may be given by specifying each line as a
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue