Show average time on exit

Signed-off-by: Luigi311 <git@luigi311.com>
pull/124/head
Luigi311 2023-12-08 11:57:30 -07:00
parent 994d529f59
commit b46d4a7166
1 changed files with 2 additions and 0 deletions

View File

@ -422,5 +422,7 @@ def main():
sleep(sleep_duration)
except KeyboardInterrupt:
if len(times) > 0:
logger(f"Average time: {sum(times) / len(times)}", 0)
logger("Exiting", log_type=0)
os._exit(0)