Add Python 3.8 compatibility - replace deprecated function time.clock with time.perf_counter

This commit is contained in:
compiling
2020-01-02 12:38:26 +11:00
parent 0eed4bb527
commit 4921daccf3
3 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ from Main import create_playthrough
__version__ = '0.2-dev'
def main(args):
start_time = time.clock()
start_time = time.perf_counter()
# initialize the world
world = World(1, 'vanilla', 'noglitches', 'standard', 'normal', 'none', 'on', 'ganon', 'freshness', False, False, False, args.quickswap, args.fastmenu, args.disablemusic, False, False, False, None, 'none', False)
@@ -89,7 +89,7 @@ def main(args):
world.spoiler.to_file('%s_Spoiler.txt' % outfilebase)
logger.info('Done. Enjoy.')
logger.debug('Total Time: %s', time.clock() - start_time)
logger.debug('Total Time: %s', time.perf_counter() - start_time)
return world