if you developed your own DS C++ code, you could also refer to DeepStream SDK FAQ - #12 by bcao to measure the latency of the pipeline comonents
if you developed your own DS C++ code, you could also refer to DeepStream SDK FAQ - #12 by bcao to measure the latency of the pipeline comonents