Skip to content

Commit

Permalink
Add note about mono_timer and hprintln
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoq2 committed Aug 12, 2020
1 parent 731b94d commit db61b7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ impl_arithmetic!(MegaHertz, u32);
impl_arithmetic!(Bps, u32);

/// A monotonic non-decreasing timer
///
/// This uses the timer in the debug watch trace peripheral. This means, that if the
/// core is stopped, the timer does not count up. This may be relevant if you are using
/// cortex_m_semihosting::hprintln for debugging in which case the timer will be stopped
/// while printing
#[derive(Clone, Copy)]
pub struct MonoTimer {
frequency: Hertz,
Expand Down

0 comments on commit db61b7b

Please sign in to comment.