Latency analysis