//! Platform-aware timestamp for pi-core.
//!
//! On wasm32 without WASI, `SystemTime::now()` panics because there is no
//! system clock. We provide a monotonic counter instead. This keeps pi-core
//! runtime-neutral — the counter is deterministic and requires no external
//! APIs.
use ;
static COUNTER: AtomicU64 = new;
/// Return a monotonically increasing timestamp value.
///
/// On native targets this uses `SystemTime::now()` (millis since epoch).
/// On `wasm32-unknown-unknown` this uses an in-process counter to avoid
/// panicking.