Learn about how Repoch handles distributed synchronisation
Repoch uses timestamps to synchronize data streams from multiple sources. Understanding how synchronization works is important for multi-camera setups and distributed systems.
Repoch uses Unix timestamps (similar to ROS conventions) for cross-system synchronization. This requires:
All clients must have synchronized system clocks
Use NTP or PTP for clock synchronization across machines
The operating system handles clock management
Copy
Ask AI
from repoch.utils.timing import get_current_time_us# All machines should report similar timestampscurrent_time_us = get_current_time_us() # Unix timestamp in microseconds
Some devices (like Arduino or ESP32) lack a system clocks. Server-side synchronisation support is coming soon.
Microcontrollers without real-time clocks should rely on the host machine for timestamps. Do not use relative timing from the microcontroller as it will drift over time.