Values from QueryPerformanceCounter function should only advance forward, but in Bochs jumps back happen. I made test program which shows such behaviour: qpctest.zip. This is what it outputs in Bochs ...