Expand description
WASM-compatible timing abstraction.
On native targets, uses std::time::Instant for wall-clock timing.
On WASM (wasm32), provides a no-op timer that always reports zero elapsed time.
This allows algorithms to compile and run on WASM without panicking,
while still supporting time-based termination on native platforms.