``` PCFreq = ((double) li.QuadPart)/1000.0; ``` must be changed to ``` PCFreq = (double) li.QuadPart; ```
must be changed to