time.process_time() instead of time.clock()
Documentation removed in https://github.com/python/cpython/commit/b6a09ae287e253e4146a5a224b75d4dbfd38cb63
This commit is contained in:
1 parent
7443960053
commit
950d98900d
5 files changed
+12
-12
No files matched your search
+2
-2
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user