1 2 3 4 5 6 7 8 9
//! Keep track of time, both in native and web platforms! #[cfg(target_arch = "wasm32")] pub use wasm_timer::Instant; #[cfg(not(target_arch = "wasm32"))] pub use std::time::Instant; pub use std::time::Duration;