Replace instant with web-time
This commit is contained in:
parent
cf77f82ae3
commit
5bbe87960e
8 changed files with 22 additions and 8 deletions
|
|
@ -34,9 +34,12 @@
|
|||
//!
|
||||
//! [`EventLoop::run(...)`]: crate::event_loop::EventLoop::run
|
||||
//! [`ControlFlow::WaitUntil`]: crate::event_loop::ControlFlow::WaitUntil
|
||||
use instant::Instant;
|
||||
use smol_str::SmolStr;
|
||||
use std::path::PathBuf;
|
||||
#[cfg(not(wasm_platform))]
|
||||
use std::time::Instant;
|
||||
#[cfg(wasm_platform)]
|
||||
use web_time::Instant;
|
||||
|
||||
#[cfg(doc)]
|
||||
use crate::window::Window;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue