Docs.rs
runmat-time-0.3.0
runmat-time 0.3.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
nallana
Dependencies
instant ^0.1
normal
js-sys ^0.3
normal
Versions
83.33%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Crate runmat_time
runmat_
time
0.3.0
All Items
Crate Items
Structs
Functions
Crate
runmat_
time
Copy item path
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.