xref: /DragonOS/kernel/src/arch/riscv64/time.rs (revision da152319797436368304cbc3f85a3b9ec049134b)
1 use crate::time::TimeArch;
2 pub struct RiscV64TimeArch;
3 
4 impl TimeArch for RiscV64TimeArch {
5     fn get_cycles() -> usize {
6         riscv::register::cycle::read()
7     }
8 
9     fn cal_expire_cycles(ns: usize) -> usize {
10         todo!()
11     }
12 }
13