The high resolution is preferred if available on the system timeGetTime.
Here's an example of usage.
// is there a performance counter available?
if (QueryPerformanceFrequency((LARGE_INTEGER *) &perf_cnt)) {
// yes, set time_count and timer choice flag
perf_flag=TRUE;
time_count=(long) perf_cnt/60;
QueryPerformanceCounter((LARGE_INTEGER *) &next_time);
time_scale=1.0/perf_cnt;
} else {
// no performance counter, read in using timeGetTime
next_time=timeGetTime();
time_scale=0.001;
}
// save time of last frame
last_time=next_time;