2022-01-28 17:05:09 +07:00
|
|
|
//! Keep track of time, both in native and web platforms!
|
|
|
|
|
|
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
2022-01-28 18:43:20 +07:00
|
|
|
pub use wasm_timer::Instant;
|
2022-01-28 17:05:09 +07:00
|
|
|
|
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
2022-01-28 18:43:20 +07:00
|
|
|
pub use std::time::Instant;
|
|
|
|
|
|
|
|
|
|
pub use std::time::Duration;
|