summaryrefslogtreecommitdiffstats
path: root/core/src/time.rs
blob: 9355ae6d8493168ef643b3e89ca21be2edf81046 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Keep track of time, both in native and web platforms!

#[cfg(target_arch = "wasm32")]
pub use instant::Instant;

#[cfg(target_arch = "wasm32")]
pub use instant::Duration;

#[cfg(not(target_arch = "wasm32"))]
pub use std::time::Instant;

#[cfg(not(target_arch = "wasm32"))]
pub use std::time::Duration;