Function nc::timer_create [−][src]
pub 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
let mut timerid = nc::timer_t::default(); let ret = nc::timer_create(nc::CLOCK_MONOTONIC, None, &mut timerid); assert!(ret.is_ok());