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 d369a28 commit 2cc3732Copy full SHA for 2cc3732
os/src/timer.rs
@@ -20,7 +20,7 @@ pub fn get_time() -> usize {
20
/// get current time in milliseconds
21
#[allow(dead_code)]
22
pub fn get_time_ms() -> usize {
23
- time::read() / (CLOCK_FREQ / MSEC_PER_SEC)
+ time::read() * MSEC_PER_SEC / CLOCK_FREQ
24
}
25
26
/// get current time in microseconds
0 commit comments