summaryrefslogtreecommitdiffstats
path: root/native/src/time.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/time.rs')
-rw-r--r--native/src/time.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/native/src/time.rs b/native/src/time.rs
new file mode 100644
index 00000000..5f95ee86
--- /dev/null
+++ b/native/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};