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