Fix latency calculation in mqexec