• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")]
main()6 fn 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")))]
main()18 fn main() {
19     unimplemented!()
20 }
21