Added doc to the embassy::time::Duration struct

This commit is contained in:
Joshua Salzedo 2021-03-21 17:01:52 -07:00
parent f8d63279ef
commit e363607d70
No known key found for this signature in database
GPG Key ID: C3D0EB484493B731

View File

@ -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,
}