Updated time.clock to time.time, since former was deprecated.

This commit is contained in:
Brian Ernst 2020-08-12 14:49:57 -07:00
parent e5a84235cb
commit 7f3c4b1cb8
3 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ import multiprocessing, subprocess, time, traceback
#==============================================================
class P4Sync:
def run( self, args ):
start = time.clock()
start = time.time()
fail_if_no_p4()
@ -46,7 +46,7 @@ class P4Sync:
except subprocess.CalledProcessError:
pass
if not options.quiet:
end = time.clock()
end = time.time()
delta = end - start
output = " Done. Finished in " + str(delta) + "s"
print( output )