Commits

Robert Kern committed 941f6bb

ENH: Better per-hit time output for easier comparison.

Comments (0)

Files changed (1)

         total_time += time
     print >>stream, 'Total time: %g s' % (total_time * unit)
     for lineno, nhits, time in timings:
-        d[lineno] = (nhits, time, '%6g' % (float(time) / nhits), '%5.1f' % (100*time / total_time))
+        d[lineno] = (nhits, time, '%5.1f' % (float(time) / nhits),
+            '%5.1f' % (100*time / total_time))
     linenos = range(start_lineno, start_lineno + len(sublines))
     empty = ('', '', '', '')
     header = template % ('Line #', 'Hits', 'Time', 'Per Hit', '% Time', 'Line Contents')