How to get fps with deepstream4.x using c++ sdk

How to get fps with deepstream4.x using c++ sdk? thanks!

Please refer to DeepStream5.0 GA version deepstream-app sample codes.


https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide/deepstream_quick_start.html#