Added doc to the embassy::time::Duration struct
This commit is contained in:
parent
f8d63279ef
commit
e363607d70
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue