nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Get resolution(precision) of the specific clock.
pub unsafe fn __clock_getres50(which_clock: clockid_t, tp: &mut timespec_t) -> Result<(), Errno> {
    let which_clock = which_clock as usize;
    let tp_ptr = core::ptr::from_mut(tp) as usize;
    unsafe { syscall2(SYS___CLOCK_GETRES50, which_clock, tp_ptr).map(drop) }
}