From 2fc36f4e93e3aa4a09726fd69095dfec2c5bb7c4 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 28 Aug 2025 10:14:04 +0200 Subject: [PATCH] print the waited time at the end --- slic/core/acquisition/broker/brokerclient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slic/core/acquisition/broker/brokerclient.py b/slic/core/acquisition/broker/brokerclient.py index 8e18eed6..a7bd078d 100644 --- a/slic/core/acquisition/broker/brokerclient.py +++ b/slic/core/acquisition/broker/brokerclient.py @@ -199,6 +199,10 @@ class BrokerClient: sleep(wait_time) + delta = time() - start_time + delta = round(delta) + print(f'{detector}: waited {delta} seconds for "{status}" status') + @forwards_to(guided_power_on, nfilled=1) def guided_power_on(self, *args, **kwargs):