#include <windows.h>

#include <cstdio>
#include <ctime>

int rdtsc()
{
  long long res;
  asm volatile ("rdtsc" : "=A" (res));
  return (int)res;
}

int main()
{
  while (1)
    printf("GetTickCount()=%.3lf clock()=%.3lf rdtsc=%d\n", GetTickCount() * 1e-3, (double)clock() / CLOCKS_PER_SEC, rdtsc());
  return 0;
}