Original Post
I was just wondering if this is the correct way to use the rdtsc or am I missing something? Thanks. ~edit~ I found another function, unsigned __int64 __rdtsc(void); Which does what I need, another question, does QueryPerformanceFrequency() return the frequency of the processsor?
unsigned __int64 get_cpu_tick()
{
DWORD dwLow, dwHigh;
__asm
{
rdtsc
mov dwLow, eax
mov dwHigh, edx
}
return ((unsigned __int64) dwHigh << 32 | dwLow);
}