update latency calculator