tessera_ui/time.rs
1//! Cross-platform clocks for elapsed time and calendar dates.
2//!
3//! ## Usage
4//!
5//! Use `Instant` for animations and `SystemTime` for calendar features.
6
7#[cfg(not(target_family = "wasm"))]
8pub use std::time::{Instant, SystemTime, UNIX_EPOCH};
9
10#[cfg(target_family = "wasm")]
11pub use web_time::{Instant, SystemTime, UNIX_EPOCH};