Registry / utility / embedded-time

embedded-time

JSON →
library0.12.1rscratesunverified

Fully defined, inter-operable, ergonomic, and fast human-time units (both duration and rate types) with hardware timer abstraction and software timers.

# Cargo.toml [dependencies] embedded-time = "0.12.1"
INSTALL
IMPORT
SIG · EMBEDDED-TIME
E
embedded-time
utilityrustv0.12.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Milliseconds
✓ use embedded_time::duration::Milliseconds;

Creates a duration of 1000 milliseconds.

use embedded_time::duration::Milliseconds; fn main() { let ms = Milliseconds::new(1000); println!("Duration: {} ms", ms.integer()); }
Debug
Known issues
gotchaRequires a time driver (e.g., cortex-m) for hardware timer abstraction; otherwise only software timers work.
fix
Enable the appropriate feature flag for your target (e.g., 'cortex-m').
affects: >=0.12.0
Upgrade
Version history
0.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
embedded-time — cargo add embedded-time · libregistry