Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

cycle.h File Reference

Go to the source code of this file.

Defines

#define CCNT_OVERHEAD   8

Functions

__inline __int64 GetCycleCount ()
__inline unsigned GetCycleCount32 ()


Define Documentation

#define CCNT_OVERHEAD   8
 

Definition at line 22 of file cycle.h.

Referenced by EndTimeMeasurement().


Function Documentation

__inline __int64 GetCycleCount  ) 
 

Definition at line 27 of file cycle.h.

Referenced by BeginTimeMeasurement(), and EndTimeMeasurement().

00028 { 00029 __asm _emit 0x0F 00030 __asm _emit 0x31 /* rdtsc */ 00031 // return EDX:EAX causes annoying warning 00032 };

__inline unsigned GetCycleCount32  ) 
 

Definition at line 34 of file cycle.h.

References EDX.

00035 { 00036 __asm push EDX 00037 __asm _emit 0x0F 00038 __asm _emit 0x31 /* rdtsc */ 00039 __asm pop EDX 00040 // return EAX causes annoying warning 00041 };


Generated on Sat May 15 19:43:23 2004 for test by doxygen 1.3.7