Milk: however you forgot QueryPerformanceCounter returns a 64-bit value. Assuming the frequency is upto 1 ms (which it actually rarely is, I think), it would take 106751991167 days until the positive range ended.