Skip to content

Commit ffae8ef

Browse files
committed
Add message when process_command completes
1 parent 59b3438 commit ffae8ef

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

rc/control/daqinterface.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,7 @@ def process_command(self, procinfo_index, command):
22982298
"RoutingManager": self.routingmanager_timeout,
22992299
}
23002300
timeout = timeout_dict[self.procinfos[procinfo_index].name]
2301+
time_start = time()
23012302

23022303
self.procinfos[procinfo_index].state = self.verbing_to_states[command]
23032304

@@ -2416,6 +2417,17 @@ def process_command(self, procinfo_index, command):
24162417

24172418
self.print_log("e", make_paragraph(output_message))
24182419

2420+
time_end = time()
2421+
self.print_log(
2422+
"d",
2423+
"%s: Done sending transition to %s, %.1f seconds elapsed"
2424+
% (
2425+
date_and_time_more_precision(),
2426+
self.procinfos[procinfo_index].label,
2427+
(endtime - starttime)
2428+
),
2429+
3,
2430+
)
24192431
return # From process_command
24202432

24212433
# JCF, Nov-8-2015

0 commit comments

Comments
 (0)