Change logging for latency to use locally calculated time