Update BaseClasses.py

Co-authored-by: Doug Hoskisson <[email protected]>
This commit is contained in:
Fabian DillandDoug Hoskisson authored and GitHub committed 2024-04-18 18:35:46 +02:00
1 parent 25a5e37cc6
commit 7ae486ad04
1 file changed
+3 -2
+3 -2
View File
@@ -124,9 +124,10 @@ class MultiWorld():
time.sleep(1)
if self.current_function:
now = time.perf_counter()
if now - self.entered > 60:
elapsed = now - self.entered
if elapsed > 60:
logging.info(f"Generation stalling in {self.current_function}, "
f"running since {time.perf_counter()-self.entered:.0f} seconds ago.")
f"running since {elapsed:.0f} seconds ago.")
self.current_function = ""
observer = Observer()