⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

set_time_correction

Function set_time_correction 

Source
pub fn set_time_correction(offset_ms: i64)
Expand description

Apply a time correction from an NTP client.

offset_ms is the difference between NTP server time and local time in milliseconds. Positive means local clock is behind (needs advancing), negative means local clock is ahead (needs slowing).

The correction is applied atomically and takes effect on the next call to current_epoch_secs().