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 4dcaa9a commit d369a28Copy full SHA for d369a28
os/src/timer.rs
@@ -26,7 +26,7 @@ pub fn get_time_ms() -> usize {
26
/// get current time in microseconds
27
#[allow(dead_code)]
28
pub fn get_time_us() -> usize {
29
- time::read() / (CLOCK_FREQ / MICRO_PER_SEC)
+ time::read() * MICRO_PER_SEC / CLOCK_FREQ
30
}
31
32
/// Set the next timer interrupt
0 commit comments