Move time module from iced_native to iced_core
This commit is contained in:
parent
87b3e03d18
commit
83c649b574
5 changed files with 6 additions and 5 deletions
|
|
@ -17,6 +17,7 @@
|
|||
pub mod alignment;
|
||||
pub mod keyboard;
|
||||
pub mod mouse;
|
||||
pub mod time;
|
||||
|
||||
mod background;
|
||||
mod color;
|
||||
|
|
|
|||
7
core/src/time.rs
Normal file
7
core/src/time.rs
Normal file
|
|
@ -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};
|
||||
Loading…
Add table
Add a link
Reference in a new issue