How to extract the timestamp information from the buffer to measure latency

Please refer to this FAQ, which provides how to obtain latency information.