Nvidia encoder Profiling

Hi all,
I am trying to measure the average prosessing time for the NvEncoder, I used the enableProfiling to get the following statistics (I am printing the encoder profiling stats every 200 buffers):

----------- Element = enc0 -----------
Total Profiling time = 2387.42
Average FPS = 29.9889
Total units processed = 71597
Average latency(usec) = 35204
Minimum latency(usec) = 4487
Maximum latency(usec) = 205056

Q1) if the encoder FPS average is 29.98 why the Average latency is 35204us instead ~33ms?
Q2) Whats the method used by the encoder and the converter to calculate this latency value? Does it really match the processing time?


Hi ACervantes,
It is open source code tegra_multimedia_api\samples\common\classes\NvElementProfiler.cpp

Please check it.