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)]
|
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
#[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 struct Duration {
|
||||||
pub(crate) ticks: u64,
|
pub(crate) ticks: u64,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user