# C203 Lesson 3: Clocks Across Devices

> The third lesson of the C203 time sync course: putting separate devices on one clock. The six patterns published rigs use, PTP with linuxptp (ptp4l, phc2sys, pmc), NTP with chrony when PTP hardware is missing, SMPTE and GPS timecode, and why every clock method still leaves exposures unaligned.

Page: https://egocam.ai/university/c203/lesson-3-clocks-across-devices/

A wrist camera that moves independently of the head, a room camera on a tripod and a second wearer's glasses cannot share a wire with the head rig. Each counts time from its own crystal. This lesson covers the methods that put separate devices on one clock before or during recording; lesson 4 covers aligning recordings after the fact. The full treatment is on [Syncing Several Devices](https://egocam.ai/sync/syncing-multiple-devices/) and [PTP and Network Time Sync](https://egocam.ai/sync/ptp-and-network-time/).

## Terms used in this lesson

See also the [glossary's synchronisation section](https://egocam.ai/reference/glossary/#synchronisation-and-timing).

| Term | Meaning |
|---|---|
| Time domain | The clock a timestamp was taken on; timestamps from different time domains cannot be compared directly |
| PTP (IEEE 1588) | A protocol that synchronises clocks over Ethernet by exchanging timestamped messages |
| Grandmaster clock | The root time source of a PTP network |
| PHC | PTP hardware clock: a clock on the network card itself |
| Hardware timestamping | The network card stamps packets as they cross the wire, rather than the operating system |
| NTP | Network Time Protocol; chrony is one implementation |
| SMPTE timecode | A label on every frame of hours, minutes, seconds and frames, standardised as SMPTE ST 12 |
| LTC | Linear timecode: SMPTE timecode carried as an audio-band signal |

## Six patterns in published rigs

The field guide groups how published rigs share time across devices into six patterns ([Six patterns in published rigs](https://egocam.ai/sync/syncing-multiple-devices/#six-patterns-in-published-rigs)):

| Pattern | How time is shared | Main limit |
|---|---|---|
| One clock on one device | One trigger and one clock drive every sensor on the board | Only covers sensors wired to that board |
| Shared timecode or sync device | A timecode generator or sync box supplies the same time to every recorder | A receiver or sync input on every device |
| One host records every camera | A phone or headset records its own camera and USB wrist cameras, logging arrival times | Arrival timestamps; cameras free-run at different rates |
| Network or radio between devices | Devices exchange time or data packets over Wi-Fi or radio | Aligns clocks, not exposures |
| Visual event at start and end | Every camera films the same QR video or LED clock | Needs operator discipline; recovery when it fails |
| Latency matching at inference | Each stream is shifted by its measured delay before the policy sees it | Delays must be re-measured when the setup changes |

> **Diagram:** The six patterns published rigs use to share time across devices, each with a published example (the examples are tabled on Syncing Multiple Devices). Only the first, one trigger and one clock on one board, aligns exposures by construction; network and radio sync align clocks, and visual events and latency matching align streams after the fact.

The decision mostly follows one question from [Sync Methods Compared](https://egocam.ai/sync/sync-methods-compared/#how-to-choose): are the sensors on one rig you can wire, on separate devices you control, or on cameras you cannot modify? Lesson 2 covered the first. This lesson covers the second. Lesson 4 covers the third, and the visual events every set-up should add anyway.

## PTP: a network of clocks on one time

PTP exchanges timestamped messages with a master clock and corrects both the offset and the rate of every other clock on the network ([How PTP disciplines a network of clocks](https://egocam.ai/sync/ptp-and-network-time/#how-ptp-disciplines-a-network-of-clocks)).

> **Diagram:** The IEEE 1588 delay request-response exchange. Four timestamps, two taken on each clock, give both the path delay and the camera's offset from the master, which the camera then corrects. The maths assumes the delay is the same in both directions, which is why non-PTP switches that queue packets unevenly show up as offset error.

Its accuracy depends on where packets are timestamped, because the protocol computes each clock's offset from the send and receive times of its messages, assuming the delay is the same in both directions; operating-system delay that varies from packet to packet breaks that assumption and becomes offset error. Red Hat: "Hardware PTP support provides better accuracy since the NIC can time stamp the PTP packets at the exact moment they are sent and received while software PTP support requires additional processing of the PTP packets by the operating system" ([Hardware timestamping and the network](https://egocam.ai/sync/ptp-and-network-time/#hardware-timestamping-and-the-network)). It adds: "When used in conjunction with hardware support, PTP is capable of sub-microsecond accuracy, which is far better than is normally obtainable with NTP", and non-PTP switches "will often cause an increase in jitter or introduce an asymmetry in the delay resulting in synchronization inaccuracies" ([RHEL 7: Configuring PTP using ptp4l](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-configuring_ptp_using_ptp4l)). PTP needs Ethernet, so it suits fixed cameras and recording computers around a capture space more than worn devices.

On Linux, PTP runs with linuxptp. Three programs do most of the work ([Linux recording PCs with linuxptp](https://egocam.ai/sync/ptp-and-network-time/#linux-recording-pcs-with-linuxptp)):

- **`ptp4l`** runs PTP on a network port. Its manual: `-H` selects hardware timestamping, "This is the default time stamping"; `-S` selects software timestamping; `-m` prints messages to standard output ([ptp4l(8)](https://linuxptp.nwtime.org/documentation/ptp4l/)).
- **`phc2sys`** copies time between the network card's clock and the system clock, which is what most recording software stamps frames with. Red Hat: "The phc2sys program is needed only with hardware time stamping, for synchronizing the system clock to the PTP hardware clock on the network interface card".
- **`pmc`**, the "PTP management client", queries a running `ptp4l`.

Two cautions. Red Hat: "Do not run more than one service to set the system clock's time at the same time". And a PTP network agrees with itself, not necessarily with the world: Basler notes that if no device follows world time, "the network will operate in the arbitrary timescale mode (ARB)" ([Basler](https://docs.baslerweb.com/precision-time-protocol)). To line PTP-stamped video up with devices on other clocks, feed the grandmaster from GPS or NTP, or add a visual sync event every device sees ([PTP time is not wall-clock time](https://egocam.ai/sync/ptp-and-network-time/#ptp-time-is-not-wall-clock-time)).

GigE Vision cameras can use PTP for common timestamps and, with scheduled action commands, for exposure at a set future time. The vendor figures and Basler's lock-check procedure are on [Enabling and verifying PTP on GigE Vision cameras](https://egocam.ai/sync/ptp-and-network-time/#enabling-and-verifying-ptp-on-gige-vision-cameras).

## When PTP hardware is missing: chrony

Many small computers and switches have no PTP support. chrony, an NTP implementation, is then the practical choice, and on a local network it can do better than NTP's reputation: with "local hardware timestamping, good network switches, and even shorter polling intervals, a sub-microsecond accuracy and stability of a few tens of nanoseconds might be possible" ([chrony FAQ](https://chrony-project.org/faq.html)). Without them, accuracy depends on network jitter: in chrony's own [simulated comparison](https://chrony-project.org/comparison.html), a client's error was 35 ± 8 µs with 10 µs of jitter and 1603 ± 447 µs with 10 ms of jitter. A capture space usually serves time from one of its own machines; the field guide gives the [chrony.conf directives](https://egocam.ai/sync/ptp-and-network-time/#when-ptp-hardware-is-missing-ntp-with-chrony).

Clock sync of either kind aligns the computers' clocks. It does not align when a USB camera actually exposed: if frames are stamped on arrival, the USB and operating-system delays from lesson 2 remain.

## Timecode: SMPTE and GPS

**SMPTE timecode** labels every frame: "Each frame shall be identified by a unique and complete address consisting of an hour, minute, second, and frame number" ([SMPTE ST 12-1:2014](https://pub.smpte.org/doc/st12-1/)). Small generators attached to each camera keep every device on a shared source; published datasets such as Assembly101 and HOT3D synchronised their cameras this way ([Shared timecode or a sync device](https://egocam.ai/sync/syncing-multiple-devices/#shared-timecode-or-a-sync-device)). Three properties matter ([SMPTE timecode](https://egocam.ai/sync/software-and-visual-sync/#smpte-timecode)):

- **Frame-level resolution.** Timecode says which frame, not where within it.
- **Drop-frame counting.** At 29.97 fps, counting as if it were 30 fps drifts by about 3.6 s per hour, which drop-frame mode corrects by skipping frame numbers.
- **A start stamp is not a clock.** A file that stores timecode once, at the start, drifts with the recorder's own clock.

Tentacle Sync recommends a timecode device over a one-off QR sync for long days: "So for long running shoots it's always better to attach a SYNC E directly to the GoPro" ([Tentacle Sync](https://support.tentaclesync.com/hc/en-us/articles/6542891685393-Tentacle-Timebar-App-QR-code-GoPro-HERO-7-8-9-10-11-experimental)).

**GPS timecode** suits outdoor capture. GoPro Labs firmware's GPS time sync updates the camera's clock "If there is a good GPS signal", and writes the timecode track at the end of capture; GoPro's stated accuracy is "In limited testing, sync is typically within a frame or two, but your precision my vary" ([GoPro Labs: GPS time synchronization](https://gopro.github.io/labs/control/gpssync)).

## Radio, Wi-Fi and one host

- **Network or radio.** Project Aria's Gen 1 TICSync over Wi-Fi is reported as "better than 1ms on average after approximately 45 seconds warm-up" ([About TICSync](https://facebookresearch.github.io/projectaria_tools/docs/ARK/sdk/concepts/about_ticsync)); Gen 2 broadcasts a SubGHz radio signal from a host pair of glasses ([If you use Project Aria glasses](https://egocam.ai/sync/syncing-multiple-devices/#if-you-use-project-aria-glasses)). Aria glasses are research devices, an entry point rather than the current shape of capture rigs, but many public datasets use them.
- **Lab Streaming Layer** measures each computer's clock offset repeatedly and "employs the clock filter algorithm of the Network Time Protocol (NTP)"; it cannot see delays inside devices, which have to be measured separately ([Kothe et al., 2025](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12434378/); [Lab Streaming Layer](https://egocam.ai/sync/software-and-visual-sync/#lab-streaming-layer)).
- **One host records every camera.** EgoKit plugs USB wrist cameras into the phone or headset that records the head view, and writes "a log.txt listing per-frame timestamps for post-hoc alignment". Its authors name timing as open work, and their workaround is to have the cameras film "a millisecond-level timer displayed on a webpage" ([Yu et al., 2026](https://arxiv.org/abs/2605.16797)).

## Every clock method leaves exposures unaligned

All of these align clocks, timestamps or start commands. None makes free-running cameras expose together, so two cameras on perfectly synchronised clocks can still expose up to half a frame apart: 16.7 ms at 30 fps ([From a shared clock to simultaneous exposure](https://egocam.ai/sync/ptp-and-network-time/#from-a-shared-clock-to-simultaneous-exposure)). Lesson 4 shows how to measure the remaining error and interpolate across it when the pipeline needs sub-frame timing.

## Self-check

1. Your room cameras and recording PC run `ptp4l` with hardware timestamping, but the recording software stamps frames with the system clock. What is missing?
2. Why might a PTP network's time disagree with a GoPro whose clock was set from a phone?
3. A camera stores its SMPTE timecode once, at the start of each file. What happens over a long take?
4. Your wrist camera is a USB camera on the same phone that records the head view. Which pattern is this, and what limits it?
5. Your devices are all on chrony with good local hardware. Can you skip the start-and-end sync events?

### Answers

1. `phc2sys`, to copy the network card's clock into the system clock (with hardware timestamping, `ptp4l` steers the card's clock, not the system clock).
2. Without a grandmaster that follows world time, a PTP network runs on an arbitrary timescale. Feed the grandmaster from GPS or NTP, or add a visual event both see.
3. The file's frames drift with the recorder's own clock after that one stamp.
4. One host records every camera. Its timestamps are arrival times on the host's clock, with USB and OS jitter, and the cameras free-run at different rates.
5. No. Clock sync aligns clocks, not exposures, and a visual event at both ends is also how you check the result and recover when a device misbehaves.

## Sources

- Field guide: [Syncing Several Devices](https://egocam.ai/sync/syncing-multiple-devices/), [PTP and Network Time Sync](https://egocam.ai/sync/ptp-and-network-time/), [Software and Visual Synchronisation](https://egocam.ai/sync/software-and-visual-sync/), [Sync Methods Compared](https://egocam.ai/sync/sync-methods-compared/), [glossary](https://egocam.ai/reference/glossary/#synchronisation-and-timing).
- linuxptp. [ptp4l(8) manual](https://linuxptp.nwtime.org/documentation/ptp4l/), [phc2sys(8) manual](https://linuxptp.nwtime.org/documentation/phc2sys/). Network Time Foundation.
- Red Hat. [RHEL 7 System Administrator's Guide: Configuring PTP using ptp4l](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-configuring_ptp_using_ptp4l).
- Basler. [Precision Time Protocol](https://docs.baslerweb.com/precision-time-protocol).
- chrony. [Frequently asked questions](https://chrony-project.org/faq.html) and [comparison of NTP implementations](https://chrony-project.org/comparison.html).
- SMPTE. [ST 12-1:2014, Time and Control Code](https://pub.smpte.org/doc/st12-1/).
- Tentacle Sync. [Timebar app QR code and GoPro HERO 7–11](https://support.tentaclesync.com/hc/en-us/articles/6542891685393-Tentacle-Timebar-App-QR-code-GoPro-HERO-7-8-9-10-11-experimental).
- GoPro Labs. [GPS time synchronization](https://gopro.github.io/labs/control/gpssync).
- Meta Project Aria. [About TICSync](https://facebookresearch.github.io/projectaria_tools/docs/ARK/sdk/concepts/about_ticsync).
- Kothe, C. et al. (2025). [The lab streaming layer for synchronized multimodal recording](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12434378/). *Imaging Neuroscience*.
- Yu et al. (2026). [EgoKit: Towards unified low-cost egocentric data collection with heterogeneous devices](https://arxiv.org/abs/2605.16797). arXiv.
