thread safe latency tracker