there’s offset_ns to record the delta from TSC to start of MONOTONIC_RAW.
you may see-also Topic 159220 for an example to use offset_ns compensate the capture timestamp.
Do TSC and MONOTONIC_RAW use the same hardware clock source?
If the system runs for 720 hours, will the difference between them become larger and larger?
Please help ask your company’s R&D personnel about the accuracy or error rules of TSC. Our products involve the fusion of each frame of image and radar data, and they work for a long time, so they must have very accurate timestamps.
they’re different. TSC is taking the timestamp of RCE, it’s a dedicated processor for camera management.
anyways, while EGL stream capture the timestamp when it rendering the frame to display. it’s close to end-of-frame of the sensor signaling, you may have alternative way by using EGLStream::IFrame::getTime
for instance, /usr/src/jetson_multimedia_api/argus/include/EGLStream/Frame.h
class IFrame : public Argus::Interface
{
public:
...
/**
* Returns the timestamp of the frame, in nanoseconds.
*/
virtual uint64_t getTime() const = 0;