instant 0.1.2

A partial replacement for std::time::Instant that works on WASM too.
Documentation
1
2
3
4
5
6
7
pub type Instant = std::time::Instant;

/// The current time, in milliseconds.
#[cfg(feature = "now")]
pub fn now() -> f64 {
    time::precise_time_s() * 1000.0
}