Lines Matching defs:time
3 """Tool for measuring execution time of small code snippets.
18 Execution time of this setup statement is NOT timed.
19 -p/--process: use time.process_time() (default is time.perf_counter())
21 -u/--unit: set the output time unit (nsec, usec, msec, or sec)
33 total time is at least 0.2 seconds.
54 import time
62 default_timer = time.perf_counter
94 To measure the execution time of the first statement, use the
168 then returns the time it takes to execute the main statement
211 """Return the number of loops and time taken so that total time >= 0.2.
214 1, 2, 5, 10, 20, 50, ... until the time taken is at least 0.2
264 "time", "clock", "process",
297 timer = time.process_time
317 # determine number so that 0.2 <= total time < 2.0
369 "The worst time (%s) was more than four times "
370 "slower than the best time (%s)."