tessera_ui/
time.rs

1//! Cross-platform monotonic time helpers.
2//!
3//! ## Usage
4//!
5//! Use `Instant` for frame timing and animations on both native and web
6//! targets.
7
8#[cfg(not(target_family = "wasm"))]
9pub use std::time::Instant;
10
11#[cfg(target_family = "wasm")]
12pub use web_time::Instant;