Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ get_time_ms
Function
get_time_ms
os/src/timer.rs:19–21 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
}
18
19
pub fn get_time_ms() -> usize {
20
time::read() / (CLOCK_FREQ / MSEC_PER_SEC)
21
}
22
23
pub fn set_next_trigger() {
24
set_timer(get_time() + CLOCK_FREQ / TICKS_PER_SEC);
Callers
3
check_timer
Function · 0.85
sys_get_time
Function · 0.85
sys_sleep
Function · 0.85
Calls
1
read
Function · 0.85
Tested by
no test coverage detected