Module timestamp

Source
Expand description

Timestamps adaptively choose implementation depending on architecture, std support and cortex-m feature

Priority order:

  1. If your CPU architecture is x86 or x86_64, X86Timestamp is used
  2. If your CPU architecture is aarch64, Aarch64Timestamp is used
  3. Otherwise, if you’re in std environment, std::time::Instant is selected as timestamp provider.
  4. If feature cortex-m is active, CortexMTimestamp is used.
  5. If none of above is true, compile error is emitted.

Re-exports§

pub use x86::X86Timestamp as Timestamp;

Modules§

x86

Traits§

TimestampProvider
TimestampProvider is a source for relatively stable timestamp, which wraps around after reaching maximum value.