* Add latency analysis function