MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / sys_get_time

Function sys_get_time

os/src/syscall/process.rs:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22pub fn sys_get_time() -> isize {
23 get_time_ms() as isize
24}
25
26pub fn sys_getpid() -> isize {
27 current_task().unwrap().process.upgrade().unwrap().getpid() as isize

Callers 1

syscallFunction · 0.70

Calls 1

get_time_msFunction · 0.85

Tested by

no test coverage detected