Function nc::adjtimex [−][src]
pub fn adjtimex(buf: &mut timex_t) -> Result<i32, Errno>
Expand description
Tune kernel clock. Returns clock state on success.
let mut tm = nc::timex_t::default(); let ret = nc::adjtimex(&mut tm); assert!(ret.is_ok()); assert!(tm.time.tv_sec > 1611552896);