// Time measure routine on Windows Platform.
//
DWORD dwEllapsedTime;
//
DWORD dwEllapsedTime;
LARGE_INTEGER ilFreq;
LARGE_INTEGER ilStartTime, ilEndTime;
QueryPerformanceFrequency(&ilFreq); // counts per seconds.
QueryPerformanceCounter(&ilStartTime);
// Write your code for which to measure execution time.
QueryPerformanceCounter(&ilEndTime);
// Compute ellapsed time.
//
dwEllapsedTime = (double)((ilEndTime.QuadPart-ilStartTime.QuadPart)/(ilFreq.QuadPart/10000));