1 2 3 4 5 6 7 8 9 10 11
//! Platform-specific time and date methods. use cfg_if::cfg_if; cfg_if! { if #[cfg(target_arch = "wasm32")] { pub use web_time::{Duration, Instant}; } else { pub use std::time::{Duration, Instant}; } }