xref: /DragonOS/kernel/src/arch/x86_64/time.rs (revision 77799ccaaca276fe127448d169f0e035837cce44)
1 use crate::time::TimeArch;
2 
3 pub struct X86_64TimeArch;
4 
5 impl TimeArch for X86_64TimeArch {
6     fn get_cycles() -> usize {
7         unsafe { x86::time::rdtsc() as usize }
8     }
9 }
10