Relationship between latency and FPS

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version DS 6.1.1
• JetPack Version (valid for Jetson only) JP 5.0.2

I am trying to measure latency when I run deepstream-app. I enabled NVDS_ENABLE_LATENCY_MEASUREMENT to measure latency. For a video file input I see about 120 ms on a average of latency per frame, but it gives me about 60 FPS. I don’t understand how it can be 60 FPS, for the full pipeline with that kind of average latency. Have any of you seen this before? I am sure I am missing something here.

Thank you in advance!

These two concepts are not the same.
The latency is the time it takes for a sample captured at timestamp 0 to reach the sink.
The fps is the number of frames parsed in a certain time. Each plugin of the Gstreamer is asynchronous.
Basically, fps is determined by the single plugin with the longest latency.