Use instant instead of wasm-timer in iced_core

This commit is contained in:
Héctor Ramón Jiménez 2023-01-12 06:24:44 +01:00
parent fc54d6ba31
commit c6d0046102
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
11 changed files with 13 additions and 13 deletions

View file

@ -1,9 +1,13 @@
//! Keep track of time, both in native and web platforms!
#[cfg(target_arch = "wasm32")]
pub use wasm_timer::Instant;
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;