jjc999 I have looked through this latency measurement example in Python and would like to implement this in my C++ code. However, from what I can tell there is not currently a way to get the current time from the camera in C++ to compare to an image timestamp (i.e. no C++ equivalent of dai.clock.now()). Is this correct or am I mistaken?
Henrik Hello erik , I had a similar problem and got guided to this post. So can I use instead of dai.clock.now chrono::steady_clock::now()? If i try and use dai.clock.now() i get the error message, that i should use dai::clock::now() instead and if i use this, the response is that there is no member named clock in namespace dai. Kind regards Henrik
jjc999 Ok awesome! This means that the timestamps from the camera are synchronized with the steadyclock in the computer, right? In other words, does this mean that getTimestamp() on an ImgFrame is measured from the same steady_clock the computer is using?
erik Hi jjc999 , That's correct, steady_clock gets synced to the OAK camera, so it should be the same clock (almost the same, as syncing can never be 100% perfect). Henrik yes, for c++ you should use steady_clock::now() instead🙂