twizzler_rt_abi/info.rs
1//! Functions for getting system information.
2
3/// System information.
4pub type SystemInfo = crate::bindings::system_info;
5
6impl SystemInfo {
7 /// Get the monotonicity of the system monotonic clock.
8 pub fn clock_monotonicity(&self) -> crate::time::Monotonicity {
9 self.clock_monotonicity.into()
10 }
11}
12
13/// Get information about the system.
14pub fn twz_rt_get_sysinfo() -> SystemInfo {
15 unsafe { crate::bindings::twz_rt_get_sysinfo() }
16}