Skip to main content

deribit_http/
time_compat.rs

1//! Cross-platform time utilities for native and WASM targets
2//!
3//! This module provides a unified `Instant` type that works across
4//! both native (std::time::Instant) and WASM (web_time::Instant) targets.
5
6#[cfg(not(target_arch = "wasm32"))]
7pub use std::time::Instant;
8
9#[cfg(target_arch = "wasm32")]
10pub use web_time::Instant;