♻️ refactor(gui): calculate and display total time for background task
This commit is contained in:
1 file changed
+2
-3
@@ -1017,10 +1017,9 @@ class HyprConfGUI(Window):
|
|||||||
|
|
||||||
print(f"{time.time():.4f}: Modus restart commands issued via Popen.")
|
print(f"{time.time():.4f}: Modus restart commands issued via Popen.")
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
|
total_time = end_time - start_time
|
||||||
print(
|
print(
|
||||||
f"{end_time:.4f}: Background task finished (Total: {
|
f"{end_time:.4f}: Background task finished (Total: {total_time:.4f}s)."
|
||||||
end_time - start_time:.4f
|
|
||||||
}s)."
|
|
||||||
)
|
)
|
||||||
|
|
||||||
thread = threading.Thread(target=_apply_and_reload_task_thread)
|
thread = threading.Thread(target=_apply_and_reload_task_thread)
|
||||||
|
|||||||
Reference in new issue
Block a user