1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! Provides `Instant` for all platforms. pub use time::Instant; crate::cfg::switch! { crate::cfg::web => { use web_time as time; } crate::cfg::std => { use std::time; } _ => { mod fallback; use fallback as time; } }