mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 23:02:30 +00:00
Added doc to the embassy::time::Duration struct
This commit is contained in:
parent
f8d63279ef
commit
e363607d70
@ -5,6 +5,7 @@ use super::TICKS_PER_SECOND;
|
||||
|
||||
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
/// Represents the difference between [Instant::now()](struct.Instant.html#method.now) and some other Instant
|
||||
pub struct Duration {
|
||||
pub(crate) ticks: u64,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user