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 wrap: on
line diff
--- a/apps/benchmark.py	Fri May 16 09:18:54 2008 +0200
+++ b/apps/benchmark.py	Fri May 16 11:26:24 2008 +0200
@@ -83,7 +83,7 @@
     stop = time.time()
     print
     print "Total time used: %.3f sec" % (stop-start)
-    print "Time per %s operation: %.3f ms" % (what, 1000*float(stop-start) / count)
+    print "Time per %s operation: %.0f ms" % (what, 1000*(stop-start) / count)
     print "*" * 6