added latency measure