bevy_utils/
time.rs

1
2
3
4
5
6
7
8
9
10
11
#[cfg(target_arch = "wasm32")]
pub use web_time::{Duration, Instant, SystemTime, SystemTimeError, TryFromFloatSecsError};

#[cfg(all(not(target_arch = "wasm32"), feature = "std"))]
pub use {
    core::time::{Duration, TryFromFloatSecsError},
    std::time::{Instant, SystemTime, SystemTimeError},
};

#[cfg(all(not(target_arch = "wasm32"), not(feature = "std")))]
pub use core::time::{Duration, TryFromFloatSecsError};