blob: 3648336a7b1a0862f25820912c2297d1431e3514 [file] [log] [blame]
//! A command which prints the current values of the realtime and monotonic
//! clocks it's given.
#[cfg(not(windows))]
#[cfg(feature = "time")]
fn main() {
println!(
"Real time: {:?}",
rustix::time::clock_gettime(rustix::time::ClockId::Realtime)
);
println!(
"Monotonic time: {:?}",
rustix::time::clock_gettime(rustix::time::ClockId::Monotonic)
);
}
#[cfg(any(windows, not(feature = "time")))]
fn main() {
unimplemented!()
}