Skip to main content

Module time

Module time 

Source
Expand description

Platform-compatible time abstractions.

  • Native: re-exports std::time::Instant.
  • Browser WASM (wasm32-unknown-unknown): re-exports [web_time::Instant] which uses performance.now() instead of panicking.
  • WASI (wasm32-wasip1/wasm32-wasip2): re-exports std::time::Instant which works natively via WASI clock APIs.

Structsยง

Instant
Platform-compatible instant type.