ltk/time.rs
// SPDX-License-Identifier: LGPL-2.1-only
// Copyright (C) 2026 Liberux Labs, S. L. <info@liberux.net>
//! The monotonic clock, which `std` does not provide in a browser: [`Instant`] is `std`'s natively and `web_time`'s on wasm32, where `std::time::Instant::now` panics. An app that builds for both uses it in place of `std`'s.
#[ cfg( not( target_arch = "wasm32" ) ) ]
pub use std::time::Instant;
#[ cfg( target_arch = "wasm32" ) ]
pub use web_time::Instant;