| Crates.io | sans-io-time |
| lib.rs | sans-io-time |
| version | 0.1.2 |
| created_at | 2025-08-26 00:26:44.272863+00 |
| updated_at | 2025-09-23 00:58:42.091985+00 |
| description | Time structures for the sans-io pattern |
| homepage | |
| repository | https://github.com/ystreet/sans-io-time |
| max_upload_size | |
| id | 1810330 |
| size | 21,402 |
Represent time as an abstract absolute value based on an arbitrary start point in a user-provided timeline.
no_std environments may require an implementation of Instant.std::time::Instant.std::time::Instant should not count time during suspend e.g.
CPU process time.The Instant type provided by this crate satisfies all of these constraints by
only specifying the carriage of data. It does not specify how the current time
is acquired or whether time continues during suspend. Both of these questions
are required to be answered (or left unspecified) by the caller by either using
std::time::Instant or std::time::SystemTime (with the "std" feature that is
enabled by default), or converting from another source of time like
boot-time.