Permalink
Browse files

Also show min time

  • Loading branch information...
1 parent b4945e0 commit bf5a49732c64e28b1a32f95799c5bc0512339d31 @apauley committed Feb 25, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 sudoku.py
View
@@ -117,8 +117,9 @@ def time_solve(grid):
times, results, valuedicts = zip(*[time_solve(grid) for grid in grids])
N = len(grids)
if N > 1:
- print "Solved %d of %d puzzles from %s (avg %.6f secs (%d Hz), max %.6f secs)." % (
- sum(results), N, name, sum(times)/N, N/sum(times), max(times))
+ print """Solved %d of %d puzzles from %s
+\t(avg %.6f secs (%d Hz), max %.6f secs, min %.6f secs).""" % (
+ sum(results), N, name, sum(times)/N, N/sum(times), max(times), min(times))
return valuedicts
def solved(values):

0 comments on commit bf5a497

Please sign in to comment.