pub fn clock_sync() -> Result<Option<ClockSync>>Expand description
Whether the system clock is kept in sync (NTP, chrony, PTP), which leases,
distributed locks, and hybrid logical clocks depend on. None where the OS
has no unprivileged answer. Reading time itself stays in clock-lib.
if let Some(c) = sys_lib::host::clock_sync()? {
println!("synchronized: {}", c.synchronized);
}ยงErrors
Os when the call fails.