Function clock_adjtime
pub unsafe fn clock_adjtime(
which_clock: i32,
tx: &mut timex_t,
) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Tune kernel clock.
Returns clock state on success.
§Examples
let mut tm = nc::timex_t::default();
let ret = unsafe { nc::clock_adjtime(nc::CLOCK_REALTIME, &mut tm) };
assert!(ret.is_ok());
assert!(tm.time.tv_sec > 1611552896);