Function times
pub unsafe fn times(buf: &mut tms_t) -> Result<isize, i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Get process times.
§Examples
let mut tms = nc::tms_t::default();
let ret = unsafe { nc::times(&mut tms) };
assert!(ret.is_ok());
let clock = ret.unwrap();
assert!(clock > 0);