viff

changeset 762:f65816507ae8

Round to nearest millisecond when printing average.
author Martin Geisler <mg@daimi.au.dk>
date Fri, 16 May 2008 11:26:24 +0200
parents c947486e9535
children 216660f40d01 08d5b2bb9ba3
files apps/benchmark.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/apps/benchmark.py	Fri May 16 09:18:54 2008 +0200
     1.2 +++ b/apps/benchmark.py	Fri May 16 11:26:24 2008 +0200
     1.3 @@ -83,7 +83,7 @@
     1.4      stop = time.time()
     1.5      print
     1.6      print "Total time used: %.3f sec" % (stop-start)
     1.7 -    print "Time per %s operation: %.3f ms" % (what, 1000*float(stop-start) / count)
     1.8 +    print "Time per %s operation: %.0f ms" % (what, 1000*(stop-start) / count)
     1.9      print "*" * 6
    1.10  
    1.11