This is not correct, the original version was. The result of QueryPerformanceCount divided by the QueryPerformanceFrequency is supposed to give you time in seconds. The QueryPerformanceCount always returns time in nanoseconds for the monotonic clock, so the QueryPerformanceFrequency should return number of nanoseconds per second.