How to test the processing delay of the gstreamer pathway?

I need to use gstreamer on Jetson Orin Nano to push streams to the cloud server. The streaming command I am using is:

gst-launch-1.0 rtspsrc location=rtsp://192.168.0.52:554/stream latency=0 ! rtph264depay ! h264parse ! rtspclientsink protocols=udp location=rtsp://xxx.xxx.xxx.xxx/live/test

And I set up ZLMediaKit in the cloud to receive RTSP streams and forward them, with a testing delay of over 5 seconds for the entire path.
How long does it take to process gstreamer and how should I design the command?