summaryrefslogtreecommitdiffstats
path: root/core/src/time.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 17:20:40 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:16 +0700
commit83c649b574d90667d23c8430baaebcd0ef933055 (patch)
tree7fdb5868ff5cb8af51f1efdad7a9f177207348c3 /core/src/time.rs
parent87b3e03d187237f665b376018ea5af0cc5f05814 (diff)
downloadiced-83c649b574d90667d23c8430baaebcd0ef933055.tar.gz
iced-83c649b574d90667d23c8430baaebcd0ef933055.tar.bz2
iced-83c649b574d90667d23c8430baaebcd0ef933055.zip
Move `time` module from `iced_native` to `iced_core`
Diffstat (limited to 'core/src/time.rs')
-rw-r--r--core/src/time.rs7
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};