Function nc::timer_create
source · pub unsafe fn timer_create(
clock: clockid_t,
event: Option<&mut sigevent_t>,
timer_id: &mut timer_t,
) -> Result<(), Errno>
Expand description
Create a per-process timer
§Examples
let mut timerid = nc::timer_t::default();
let ret = unsafe { nc::timer_create(nc::CLOCK_MONOTONIC, None, &mut timerid) };
assert!(ret.is_ok());