From 205929bfc94176299f769e9263824ad3cc1a8214 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 24 Jan 2022 18:24:28 -0800 Subject: [PATCH] Log time spent running to first contact. --- qt_ui/widgets/QTopPanel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt_ui/widgets/QTopPanel.py b/qt_ui/widgets/QTopPanel.py index f57b53ca..2a825ad9 100644 --- a/qt_ui/widgets/QTopPanel.py +++ b/qt_ui/widgets/QTopPanel.py @@ -280,7 +280,8 @@ class QTopPanel(QFrame): return if self.game.settings.fast_forward_to_first_contact: - self.sim_controller.run_to_first_contact() + with logged_duration("Simulating to first contact"): + self.sim_controller.run_to_first_contact() self.sim_controller.generate_miz( persistency.mission_path_for("liberation_nextturn.miz") )