From e363607d70ee088d2da43ec27d4a6257069a6b06 Mon Sep 17 00:00:00 2001 From: Joshua Salzedo Date: Sun, 21 Mar 2021 17:01:52 -0700 Subject: [PATCH] Added doc to the embassy::time::Duration struct --- embassy/src/time/duration.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy/src/time/duration.rs b/embassy/src/time/duration.rs index 474d0621..db0e2cf2 100644 --- a/embassy/src/time/duration.rs +++ b/embassy/src/time/duration.rs @@ -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, }