devela::_dep::nc

Function time

pub unsafe fn time(t: &mut isize) -> Result<isize, i32> 
Available on crate feature dep_nc only.
Expand description

Get time in seconds.

§Examples

let mut t = 0;
let ret = unsafe { nc::time(&mut t) };
assert_eq!(ret.unwrap(), t);
assert!(t > 1610421040);