Merge pull request #844 from KhronosGroup/marky_master_fix_python3

Fix python 3.7 warning
This commit is contained in:
Jon Leech 2018-11-03 15:41:46 -07:00 committed by GitHub
commit e14805feb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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