The download link didn't work for me.

But to me it sounds like you have a computer with two processors and your timer code is using something like RDTSC. When you have more than 1 app running, I guess WinXP will assign each to a single processor, but when your game is alone, but processors are used. The RDTSC uses the processor's time counter which could be different on each processor.