1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! HelenOS time handling //! //! * Header file: <https://github.com/HelenOS/helenos/tree/master/uspace/lib/c/include/time.h> use crate::prelude::*; pub type time_t = c_longlong; pub type usec_t = c_longlong; s2! { #[exhaustive] pub struct timespec { pub tv_sec: time_t, pub tv_nsec: c_long, } } extern "C" { pub fn getuptime(tp: *mut timespec); }