WebRTC samples Peer connection and requestVideoFrameCallback()

Local capture delay (converted to milliseconds)
Network delay (milliseconds)

Render delay (milliseconds)
Processing time (converted to milliseconds)

For more information about requestVideoFrameCallback, see Perform efficient per-video-frame operations on video with requestVideoFrameCallback().

View source on GitHub