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

Function main

user/src/bin/sleep_simple.rs:10–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9#[no_mangle]
10pub fn main() -> i32 {
11 println!("into sleep test!");
12 let start = get_time();
13 println!("current time_msec = {}", start);
14 sleep(100);
15 let end = get_time();
16 println!(
17 "time_msec = {} after sleeping 100 ticks, delta = {}ms!",
18 end,
19 end - start
20 );
21 println!("r_sleep passed!");
22 0
23}

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.85
get_timeFunction · 0.50

Tested by

no test coverage detected