diff options
Diffstat (limited to 'core/src/time.rs')
-rw-r--r-- | core/src/time.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/time.rs b/core/src/time.rs new file mode 100644 index 00000000..5f95ee86 --- /dev/null +++ b/core/src/time.rs @@ -0,0 +1,7 @@ +//! Keep track of time, both in native and web platforms! + +#[cfg(target_arch = "wasm32")] +pub use instant::{Duration, Instant}; + +#[cfg(not(target_arch = "wasm32"))] +pub use std::time::{Duration, Instant}; |