bevy_platform/time/
mod.rs

1//! Provides `Instant` for all platforms.
2
3pub use time::Instant;
4
5cfg_if::cfg_if! {
6    if #[cfg(all(target_arch = "wasm32", feature = "web"))] {
7        use web_time as time;
8    } else if #[cfg(feature = "std")] {
9        use std::time;
10    } else {
11        mod fallback;
12
13        use fallback as time;
14    }
15}