1 #ifndef _CycleCounter_hh_64825420763_
2 #define _CycleCounter_hh_64825420763_
38 __forceinline __int64 __fastcall GetTSC(){
return __rdtsc(); };
40 __forceinline __int64 __fastcall GetTSC(){ __asm rdtsc };
46 GetTSCTicks(__int64 start, __int64 end)
48 return ((end - start) & 0xFFFFFFFFFFFF);
57 #if !defined(WIN32) && defined(__i386__)
59 asm(
"rdtsc; movl %%edx,%0; movl %%eax,%1"
60 :
"=r" (*hi),
"=r" (*lo)
void GetTSC_hilo(unsigned int *hi, unsigned int *lo)
processor cycles Time Stamp Counter on >= Pentium like CPU's.