Index: leahi_dialin/td/modules/treatment.py =================================================================== diff -u -r1f2bf6d939eb4033dbedb7d7005494cc12fccbc6 -r8ad61b1fa2e79b11b1c3db53a3242662e8eb9adf --- leahi_dialin/td/modules/treatment.py (.../treatment.py) (revision 1f2bf6d939eb4033dbedb7d7005494cc12fccbc6) +++ leahi_dialin/td/modules/treatment.py (.../treatment.py) (revision 8ad61b1fa2e79b11b1c3db53a3242662e8eb9adf) @@ -16,6 +16,7 @@ # Module imports from logging import Logger +import time # Project imports from leahi_dialin.common.constants import NO_RESET @@ -129,6 +130,7 @@ self.hep_bolus_vol = 0.0 #: The Heparin bolus volume self.uf_vol = 0.0 #: The Ultrafiltration volume self.tx_param_req_timestamp = 0 #: The timestamp of the latest Treatment Parameters Request message + self.handler_execution_times = [] @publish(["msg_id_td_treatment_param_ranges", "min_tx_time","max_tx_time","min_uf_volume","max_uf_volume", @@ -140,6 +142,7 @@ @param message: published treatment parameter range data message @return: none """ + start = time.perf_counter() msg_list = [] msg_list.append(['self.min_tx_time', DataTypes.U32]) msg_list.append(['self.max_tx_time', DataTypes.U32]) @@ -151,6 +154,7 @@ self.process_into_vars(decoder_list = msg_list, message = message) self.tx_params_timestamp = timestamp + self.handler_execution_times.append(time.perf_counter() - start) @publish(["msg_id_td_saline_bolus_data", "tgt_saline_volume","cum_saline_volume","bol_saline_volume",