Latency measure for every frame

You can refer to this FAQ