twizzler_rt_abi/info.rs
//! Functions for getting system information.
/// System information.
pub type SystemInfo = crate::bindings::system_info;
impl SystemInfo {
/// Get the monotonicity of the system monotonic clock.
pub fn clock_monotonicity(&self) -> crate::time::Monotonicity {
self.clock_monotonicity.into()
}
}
/// Get information about the system.
pub fn twz_rt_get_sysinfo() -> SystemInfo {
unsafe { crate::bindings::twz_rt_get_sysinfo() }
}