summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 18:43:20 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:17 +0700
commite730d97f61bc2edc77d2f061b6a763c4d0a948df (patch)
tree8966e2ad3b093c83295b3ad0c5b8d1c460a1c158 /core/src
parent167be45a7db7c1f60a79116766bdf38300429c6a (diff)
downloadiced-e730d97f61bc2edc77d2f061b6a763c4d0a948df.tar.gz
iced-e730d97f61bc2edc77d2f061b6a763c4d0a948df.tar.bz2
iced-e730d97f61bc2edc77d2f061b6a763c4d0a948df.zip
Implement `time` module for `wasm-bindgen` backend in `iced_futures`
Diffstat (limited to 'core/src')
-rw-r--r--core/src/time.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/time.rs b/core/src/time.rs
index 5f95ee86..f496d1a4 100644
--- a/core/src/time.rs
+++ b/core/src/time.rs
@@ -1,7 +1,9 @@
//! Keep track of time, both in native and web platforms!
#[cfg(target_arch = "wasm32")]
-pub use instant::{Duration, Instant};
+pub use wasm_timer::Instant;
#[cfg(not(target_arch = "wasm32"))]
-pub use std::time::{Duration, Instant};
+pub use std::time::Instant;
+
+pub use std::time::Duration;