xref: /DragonOS/kernel/src/arch/x86_64/time.rs (revision 45626c859f95054b76d8b59afcbd24c6b235026f)
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