How to get the latency from deepstream python apps

You may need to generate python binding for nvds_measure_buffer_latency() first according to the instruction deepstream_python_apps/bindings at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

And then you can use this API to enable latency function as DeepStream SDK FAQ - #12 by bcao