Calculate AVG, MIN, MAX latency