Index: leahi_dialin/dd/modules/rinse_pump.py =================================================================== diff -u -r1f2bf6d939eb4033dbedb7d7005494cc12fccbc6 -r8ebb614a8c6e52b27d40ac5ef8b48aa22a4be73d --- leahi_dialin/dd/modules/rinse_pump.py (.../rinse_pump.py) (revision 1f2bf6d939eb4033dbedb7d7005494cc12fccbc6) +++ leahi_dialin/dd/modules/rinse_pump.py (.../rinse_pump.py) (revision 8ebb614a8c6e52b27d40ac5ef8b48aa22a4be73d) @@ -16,6 +16,7 @@ # Module imports from logging import Logger +import time # Project imports from leahi_dialin.common.constants import NO_RESET @@ -53,6 +54,7 @@ self.d79_state = 0 #: The State of the D79 Pump self.d79_pump_pwm = 0.0 #: The PWM of the D79 Pump self.d79_pump_rpm = 0 #: The RPM of the D79 Pump + self.handler_execution_times = [] @publish(["msg_id_dd_rinse_pump_data", @@ -65,6 +67,7 @@ @param message: published rinse pump data message @return: None """ + start = time.perf_counter() msg_list =[] msg_list.append(('self.d79_state', DataTypes.U32)) msg_list.append(('self.d79_pump_pwm', DataTypes.F32)) @@ -73,6 +76,7 @@ self.process_into_vars(decoder_list = msg_list, message = message) self.dd_rinse_pump_timestamp = timestamp + self.handler_execution_times.append(time.perf_counter() - start) def cmd_rinse_pump_data_publish_interval_override(self, ms: int, reset: int = NO_RESET) -> int: