sync

Function sync 

Source
pub fn sync(cfg: &Config<'_>) -> Result<()>
Expand description

Synchronize with an NTP server.

Sends a single NTP request and stores the computed UTC offset. Subsequent calls update the stored offset.

ยงErrors

Returns an error if the NTP query fails.