Skip to content

Commit

Permalink
Show average time on exit
Browse files Browse the repository at this point in the history
Signed-off-by: Luigi311 <[email protected]>
  • Loading branch information
luigi311 committed Dec 8, 2023
1 parent cd4ce18 commit 2ec88d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2ec88d4

Please sign in to comment.