Merge pull request #844 from KhronosGroup/marky_master_fix_python3
Fix python 3.7 warning
This commit is contained in:
commit
e14805feb6
|
@ -30,11 +30,11 @@ startTime = None
|
|||
|
||||
def startTimer(timeit):
|
||||
global startTime
|
||||
startTime = time.clock()
|
||||
startTime = time.process_time()
|
||||
|
||||
def endTimer(timeit, msg):
|
||||
global startTime
|
||||
endTime = time.clock()
|
||||
endTime = time.process_time()
|
||||
if (timeit):
|
||||
write(msg, endTime - startTime, file=sys.stderr)
|
||||
startTime = None
|
||||
|
|
Loading…
Reference in New Issue