bevy_platform/time/
mod.rs

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