logging latency