Skip to main content

Crate runmat_time

Crate runmat_time 

Source

Structs§

Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.

Functions§

duration_since_epoch
Returns the duration since the Unix epoch for the current instant.
system_time_now
Returns a SystemTime representing “now” even on wasm targets where SystemTime::now() normally panics. On wasm we synthesize the timestamp from Date.now() so existing code can keep using standard APIs.
unix_timestamp_ms
Milliseconds since the Unix epoch, safe to call on wasm and native hosts.
unix_timestamp_ns
Nanoseconds since the Unix epoch.
unix_timestamp_us
Microseconds since the Unix epoch.