1//! A command which prints the current values of the realtime and monotonic 2//! clocks it's given. 3 4#[cfg(not(windows))] 5#[cfg(feature = "time")] 6fn main() { 7 println!( 8 "Real time: {:?}", 9 rustix::time::clock_gettime(rustix::time::ClockId::Realtime) 10 ); 11 println!( 12 "Monotonic time: {:?}", 13 rustix::time::clock_gettime(rustix::time::ClockId::Monotonic) 14 ); 15} 16 17#[cfg(any(windows, not(feature = "time")))] 18fn main() { 19 unimplemented!() 20} 21