Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_platform/src/time/mod.rs
6849 views
1
//! Provides `Instant` for all platforms.
2
3
pub use time::Instant;
4
5
crate::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
}
18
19