Hi,I'm trying to measure the end to end latency between the camera capturing a frame and my PC receiving the pose detection coordinates.
I'm using this line to calculte the latency :
latency_ms = (dai.Clock.now() - nn_msg.getTimestamp()).total_seconds() * 1000
Wich give me around 30ms latency
But when i film myself and compare my movement to the time i see a changement on my pc I came up with around 60ms latency.
So I have several questions :
- What time am I measuring with my code ?
- How can I accuratly measure the latency ?