MCPcopy 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
19pub fn get_time_ms() -> usize {
20 time::read() / (CLOCK_FREQ / MSEC_PER_SEC)
21}
22
23pub fn set_next_trigger() {
24 set_timer(get_time() + CLOCK_FREQ / TICKS_PER_SEC);

Callers 3

check_timerFunction · 0.85
sys_get_timeFunction · 0.85
sys_sleepFunction · 0.85

Calls 1

readFunction · 0.85

Tested by

no test coverage detected