diff options
-rw-r--r-- | Lib/test/test_timing.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Lib/test/test_timing.py b/Lib/test/test_timing.py new file mode 100644 index 0000000..5dbc895 --- /dev/null +++ b/Lib/test/test_timing.py @@ -0,0 +1,21 @@ +from test_support import verbose +import timing + +r = range(100000) +if verbose: + print 'starting...' +timing.start() +for i in r: + pass +timing.finish() +if verbose: + print 'finished' + +secs = timing.seconds() +milli = timing.milli() +micro = timing.micro() + +if verbose: + print 'seconds:', secs + print 'milli :', milli + print 'micro :', micro |