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 c765117 commit 9190dddCopy full SHA for 9190ddd
src/timer.rs
@@ -158,7 +158,7 @@ impl MonoTimer {
158
/// Returns an `Instant` corresponding to "now"
159
pub fn now(self) -> Instant {
160
Instant {
161
- now: DWT::get_cycle_count(),
+ now: DWT::cycle_count(),
162
}
163
164
@@ -172,7 +172,7 @@ pub struct Instant {
172
impl Instant {
173
/// Ticks elapsed since the `Instant` was created
174
pub fn elapsed(self) -> u32 {
175
- DWT::get_cycle_count().wrapping_sub(self.now)
+ DWT::cycle_count().wrapping_sub(self.now)
176
177
178
0 commit comments