Skip to content

Commit 9190ddd

Browse files
committed
update function
1 parent c765117 commit 9190ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl MonoTimer {
158158
/// Returns an `Instant` corresponding to "now"
159159
pub fn now(self) -> Instant {
160160
Instant {
161-
now: DWT::get_cycle_count(),
161+
now: DWT::cycle_count(),
162162
}
163163
}
164164
}
@@ -172,7 +172,7 @@ pub struct Instant {
172172
impl Instant {
173173
/// Ticks elapsed since the `Instant` was created
174174
pub fn elapsed(self) -> u32 {
175-
DWT::get_cycle_count().wrapping_sub(self.now)
175+
DWT::cycle_count().wrapping_sub(self.now)
176176
}
177177
}
178178

0 commit comments

Comments
 (0)