From 4b02aae88915bd2869a19bb436c311a4516285a7 Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Fri, 8 Dec 2023 11:57:30 -0700 Subject: [PATCH] Show average time on exit Signed-off-by: Luigi311 --- src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.py b/src/main.py index 05b5c96..fa99a63 100644 --- a/src/main.py +++ b/src/main.py @@ -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)