blob: 077c9d4028cca8a7fc8d9d818aa6ac905abf4dc9 [file] [log] [blame]
cfg_if::cfg_if! {
if #[cfg(any(
all(target_arch = "wasm32", not(target_os = "wasi")),
target_arch = "asmjs"
))] {
#[cfg(all(feature = "stdweb", not(feature = "wasm-bindgen")))]
#[macro_use]
extern crate stdweb;
mod wasm;
pub use wasm::Instant;
#[cfg(feature = "now")]
pub use crate::wasm::now;
} else {
mod native;
pub use native::Instant;
#[cfg(feature = "now")]
pub use native::now;
}
}
pub use std::time::Duration;