1*fbe6becdSLoGin use crate::time::TimeArch; 2*fbe6becdSLoGin 3*fbe6becdSLoGin pub struct X86_64TimeArch; 4*fbe6becdSLoGin 5*fbe6becdSLoGin impl TimeArch for X86_64TimeArch { 6*fbe6becdSLoGin fn get_cycles() -> usize { 7*fbe6becdSLoGin unsafe { x86::time::rdtsc() as usize } 8*fbe6becdSLoGin } 9*fbe6becdSLoGin } 10