time.process_time() instead of time.clock()

Documentation removed in b6a09ae287
This commit is contained in:
Isidro Arias
2025-01-22 14:08:08 +01:00
parent 7443960053
commit 950d98900d
5 changed files with 12 additions and 12 deletions

View File

@@ -138,9 +138,9 @@ def solve_all(grids, name=''):
sum(results), N, name, sum(times)/N, N/sum(times), max(times)))
def time_solve(grid):
start = time.clock()
start = time.process_time()
values = solve(grid)
t = time.clock()-start
t = time.process_time()-start
return (t, solved(values))
def solved(values):