blob: 3648336a7b1a0862f25820912c2297d1431e3514 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//! 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!()
}
|