This commit is contained in:
Luigi311
2022-08-17 22:53:27 -06:00
parent c848106ce7
commit 190a72bd3c
3 changed files with 26 additions and 15 deletions

View File

@@ -644,6 +644,9 @@ def main():
end = perf_counter()
times.append(end - start)
if len(times) > 0:
logger(f"Average time: {sum(times) / len(times)}", 0)
logger(f"Looping in {sleep_duration}")
sleep(sleep_duration)
@@ -659,7 +662,5 @@ 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)