Index: leahi_dialin/td/modules/syringe_pump.py =================================================================== diff -u -rd0dedd8e720be5de357176ffb095484ec082c830 -r27d9de42c0111c7f369cc335889fe6b988d09cc8 --- leahi_dialin/td/modules/syringe_pump.py (.../syringe_pump.py) (revision d0dedd8e720be5de357176ffb095484ec082c830) +++ leahi_dialin/td/modules/syringe_pump.py (.../syringe_pump.py) (revision 27d9de42c0111c7f369cc335889fe6b988d09cc8) @@ -16,6 +16,7 @@ # Module imports from logging import Logger +import time from typing import Union # Project imports @@ -64,14 +65,15 @@ self.h10_pump_adc_dac_status = 0 self.h10_pump_adc_read_counter = 0 self.td_syringe_pump_timestamp = 0.0 #: The timestamp of the syringe pump message + self.handler_execution_times = [] # ============================================================ Properties ============================================================ @property def h10_pump_state(self) -> TDTreaSyringePumpStates: """ - The Srynge Pump State + The Syringe Pump State """ return self._h10_pump_state @@ -264,6 +266,7 @@ @param message: published syringe pump data message @return: None """ + start = time.perf_counter() msg_list = [] msg_list.append((type(self).h10_pump_state, DataTypes.U32)) msg_list.append((type(self).heparin_state, DataTypes.U32)) @@ -282,9 +285,9 @@ self.process_into_vars(decoder_list = msg_list, message = message) self.td_syringe_pump_timestamp = timestamp + self.handler_execution_times.append((timestamp, message, time.perf_counter() - start)) - # ============================================================ Overrides and Requests ============================================================ def cmd_syringe_pump_operation(self, operation: int = TDSyringePumpStates.STOP.value, rate: float = 0.0,