Updated time.clock to time.time, since former was deprecated.
This commit is contained in:
parent
e5a84235cb
commit
7f3c4b1cb8
|
@ -18,7 +18,7 @@ import time, traceback
|
||||||
|
|
||||||
#==============================================================
|
#==============================================================
|
||||||
def main( args ):
|
def main( args ):
|
||||||
start = time.clock()
|
start = time.time()
|
||||||
|
|
||||||
fail_if_no_p4()
|
fail_if_no_p4()
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ def main( args ):
|
||||||
if error_count > 0:
|
if error_count > 0:
|
||||||
output += " w/ " + str( error_count ) + singular_pulural( error_count, " error", " errors" )
|
output += " w/ " + str( error_count ) + singular_pulural( error_count, " error", " errors" )
|
||||||
|
|
||||||
end = time.clock()
|
end = time.time()
|
||||||
delta = end - start
|
delta = end - start
|
||||||
output += "\nFinished in " + str(delta) + "s"
|
output += "\nFinished in " + str(delta) + "s"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import multiprocessing, subprocess, time, traceback
|
||||||
#==============================================================
|
#==============================================================
|
||||||
class P4Sync:
|
class P4Sync:
|
||||||
def run( self, args ):
|
def run( self, args ):
|
||||||
start = time.clock()
|
start = time.time()
|
||||||
|
|
||||||
fail_if_no_p4()
|
fail_if_no_p4()
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class P4Sync:
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
if not options.quiet:
|
if not options.quiet:
|
||||||
end = time.clock()
|
end = time.time()
|
||||||
delta = end - start
|
delta = end - start
|
||||||
output = " Done. Finished in " + str(delta) + "s"
|
output = " Done. Finished in " + str(delta) + "s"
|
||||||
print( output )
|
print( output )
|
||||||
|
|
|
@ -15,7 +15,7 @@ import time, traceback
|
||||||
#==============================================================
|
#==============================================================
|
||||||
class P4SyncMissing:
|
class P4SyncMissing:
|
||||||
def run( self, args ):
|
def run( self, args ):
|
||||||
start = time.clock()
|
start = time.time()
|
||||||
|
|
||||||
fail_if_no_p4()
|
fail_if_no_p4()
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ class P4SyncMissing:
|
||||||
print( " Done." )
|
print( " Done." )
|
||||||
|
|
||||||
if not options.quiet:
|
if not options.quiet:
|
||||||
end = time.clock()
|
end = time.time()
|
||||||
delta = end - start
|
delta = end - start
|
||||||
output = " Done. Finished in " + str(delta) + "s"
|
output = " Done. Finished in " + str(delta) + "s"
|
||||||
print( output )
|
print( output )
|
||||||
|
|
Loading…
Reference in New Issue