Add latency measurement to Client