calculate latency average by use update latency data not all sum