MT#55283 use timeval_subtract

Change-Id: I91174702dac50c05725a5e3b62bdeae5f7db9c32
pull/1910/head
Richard Fuchs 10 months ago
parent 4947ab9404
commit 89abf47989

@ -863,7 +863,7 @@ static void control_ng_process_payload(ng_ctx *hctx, str *reply, str *data, cons
// stop command timer
gettimeofday(&cmd_stop, NULL);
//print command duration
timeval_from_us(&cmd_process_time, timeval_diff(&cmd_stop, &cmd_start));
timeval_subtract(&cmd_process_time, &cmd_stop, &cmd_start);
if (command_ctx.opmode >= 0 && command_ctx.opmode < OP_COUNT) {
mutex_lock(&cur->cmd[command_ctx.opmode].lock);

Loading…
Cancel
Save