# Latency measurement in python deepstream implementation

**URL:** <https://forums.developer.nvidia.com/t/latency-measurement-in-python-deepstream-implementation/215395>\
**Category:** Computer Vision & Image Processing\
**Created:** [May 24, 2022, 7:06am UTC](https://forums.developer.nvidia.com/t/latency-measurement-in-python-deepstream-implementation/215395 "2022-05-24T07:06:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveenchand.t](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@naveenchand.t](https://forums.developer.nvidia.com/u/naveenchand.t)\
**Post date:** [May 24, 2022, 7:06am UTC](https://forums.developer.nvidia.com/t/latency-measurement-in-python-deepstream-implementation/215395/1 "2022-05-24T07:06:21Z")

</div>

On a native deepstream app, we are able to get the frame latency and plugin latency, by enabling latency measurement with below commands.  
export NVDS\_ENABLE\_LATENCY\_MEASUREMENT=1  
export NVDS\_ENABLE\_COMPONENT\_LATENCY\_MEASUREMENT=1

Please let me know, how we can we can get similar latency measurements for a python based deepstream pipeline.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [May 24, 2022, 7:14pm UTC](https://forums.developer.nvidia.com/t/latency-measurement-in-python-deepstream-implementation/215395/2 "2022-05-24T19:14:45Z")

</div>

These capabilities are exposed via the deepstream API :  
[https://docs.nvidia.com/metropolis/deepstream/4.0/dev-guide/DeepStream\_Development\_Guide/baggage/group\_\_ee\_\_nvlatency\_\_group.html](https://docs.nvidia.com/metropolis/deepstream/4.0/dev-guide/DeepStream_Development_Guide/baggage/group __ee__ nvlatency__group.html)

So you should be able to use these APIs directly from your python code.

I hope this note helps.
