1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 16:16:16 +04:00
This commit is contained in:
equation314 2019-10-05 13:00:47 +08:00
parent 6a7c72dbde
commit 9f6cb5966d

View File

@ -9,7 +9,7 @@ pub fn init() {
info!("timer: init end"); info!("timer: init end");
} }
/// Set next timer interrupt to 10 ms from now. /// Returns the current time in microseconds.
pub fn get_cycle() -> u64 { pub fn get_cycle() -> u64 {
Timer::new().read() Timer::new().read()
} }