We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731b94d commit 352ad75Copy full SHA for 352ad75
src/time.rs
@@ -28,7 +28,7 @@
28
//! ```
29
30
use core::ops;
31
-use cortex_m::peripheral::{DWT, DCB};
+use cortex_m::peripheral::{DCB, DWT};
32
33
use crate::rcc::Clocks;
34
@@ -227,6 +227,11 @@ impl_arithmetic!(MegaHertz, u32);
227
impl_arithmetic!(Bps, u32);
228
229
/// A monotonic non-decreasing timer
230
+///
231
+/// This uses the timer in the debug watch trace peripheral. This means, that if the
232
+/// core is stopped, the timer does not count up. This may be relevant if you are using
233
+/// cortex_m_semihosting::hprintln for debugging in which case the timer will be stopped
234
+/// while printing
235
#[derive(Clone, Copy)]
236
pub struct MonoTimer {
237
frequency: Hertz,
0 commit comments