TIMESTAMP_CLOCK Class Reference

Lists available clock sources for SDK timestamps. More...

Detailed Description

Lists available clock sources for SDK timestamps.

Selects the clock used internally by the SDK to timestamp images and sensor data. Both image and IMU timestamps always use the same selected clock, ensuring coherent results.

Note
This is a process-wide setting. Use set_timestamp_clock() before opening any camera.
Enumerator
SYSTEM_CLOCK Timestamps use system (wall-clock) time. Affected by NTP/PTP adjustments.
MONOTONIC_CLOCK Timestamps use monotonic clock (CLOCK_MONOTONIC). Never jumps on clock steps, but its rate is still slewed by NTP/PTP (stays aligned with real time, at the cost of a non-constant tick rate).
MONOTONIC_RAW_CLOCK Timestamps use the raw monotonic clock (CLOCK_MONOTONIC_RAW). Driven directly by hardware; immune to both NTP/PTP steps and frequency slewing, so it can slowly drift from wall-clock time.
Note
On ZED X cameras, full end-to-end immunity also requires ZED X driver version 1.4.2 or later. With older drivers the IMU itself can pause briefly when the system time is set backward; the SDK emits a warning at camera open and resumes IMU delivery automatically. Other cameras are unaffected.