mqtt5_protocol/
time.rs

1#[cfg(not(target_arch = "wasm32"))]
2pub use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
3
4#[cfg(target_arch = "wasm32")]
5pub use web_time::{Duration, Instant, SystemTime, UNIX_EPOCH};
6
7#[must_use]
8pub fn is_using_web_time() -> bool {
9    cfg!(target_arch = "wasm32")
10}