Skip to main content

Module platform_time

Module platform_time 

Source
Expand description

Cross-platform time helpers.

wasm32-unknown-unknown does not support std::time::Instant::now() or std::time::SystemTime::now(). Use this module anywhere runtime code needs wall-clock or monotonic time.

Structs§

Duration
A Duration type to represent a span of time, typically used for system timeouts.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
LocalTimeFields

Functions§

local_log_timestamp
local_time_fields
unix_time_millis
unix_time_secs