Expand description
Timestamps adaptively choose implementation depending on architecture, std support and cortex-m
feature
Priority order:
- If your CPU architecture is x86 or x86_64,
X86Timestamp
is used - If your CPU architecture is aarch64,
Aarch64Timestamp
is used - Otherwise, if you’re in std environment,
std::time::Instant
is selected as timestamp provider. - If feature
cortex-m
is active,CortexMTimestamp
is used. - If none of above is true, compile error is emitted.
Re-exports§
pub use x86::X86Timestamp as Timestamp;
Modules§
Traits§
- Timestamp
Provider - TimestampProvider is a source for relatively stable timestamp, which wraps around after reaching maximum value.