Removed usage of deprecated time.clock()

This commit is contained in:
Bonta-kun
2019-10-16 08:20:28 +02:00
parent fe6a032f09
commit ce19713209
3 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ from Utils import output_path
__version__ = '0.6.3-pre'
def main(args, seed=None):
start = time.clock()
start = time.process_time()
# initialize the world
world = World(args.multi, args.shuffle, args.logic, args.mode, args.swords, args.difficulty, args.item_functionality, args.timer, args.progressive, args.goal, args.algorithm, not args.nodungeonitems, args.accessibility, args.shuffleganon, args.quickswap, args.fastmenu, args.disablemusic, args.keysanity, args.retro, args.custom, args.customitemarray, args.shufflebosses, args.hints)
@@ -172,7 +172,7 @@ def main(args, seed=None):
world.spoiler.to_file(output_path('%s_Spoiler.txt' % outfilebase))
logger.info('Done. Enjoy.')
logger.debug('Total Time: %s', time.clock() - start)
logger.debug('Total Time: %s', time.process_time() - start)
return world