diff options
| author | Joshua Salzedo <[email protected]> | 2021-03-21 17:01:52 -0700 |
|---|---|---|
| committer | Joshua Salzedo <[email protected]> | 2021-03-21 17:01:52 -0700 |
| commit | e363607d70ee088d2da43ec27d4a6257069a6b06 (patch) | |
| tree | c26ae0017cacea39a5e187695cded9ee6d19a765 | |
| parent | f8d63279efed5dfd649118ac89903a8bcb01a09d (diff) | |
Added doc to the embassy::time::Duration struct
| -rw-r--r-- | embassy/src/time/duration.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy/src/time/duration.rs b/embassy/src/time/duration.rs index 474d0621b..db0e2cf2d 100644 --- a/embassy/src/time/duration.rs +++ b/embassy/src/time/duration.rs | |||
| @@ -5,6 +5,7 @@ use super::TICKS_PER_SECOND; | |||
| 5 | 5 | ||
| 6 | #[derive(Debug, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] | 6 | #[derive(Debug, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] |
| 7 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 7 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 8 | /// Represents the difference between [Instant::now()](struct.Instant.html#method.now) and some other Instant | ||
| 8 | pub struct Duration { | 9 | pub struct Duration { |
| 9 | pub(crate) ticks: u64, | 10 | pub(crate) ticks: u64, |
| 10 | } | 11 | } |
