Skip to main content

notify_clock_sync

Function notify_clock_sync 

Source
pub fn notify_clock_sync(t_synced: SystemTime)
Expand description

Time-source providers (PTP/NTP integrations, hardware-clock drivers) call this when they receive a fresh sync from their upstream master. Every registered register_clock_sync_hook callback fires with t_synced — the time the source reports as authoritative right now.

notify_clock_sync does NOT itself update any internal cache — get_current and get_event keep their existing ratchet semantics (a backward step is rejected). The hook is purely a notification channel for downstream consumers (records that want to log a step, archivers that want to insert a discontinuity marker).