RE: Re[4]: [GD-Windows] Performance timing
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2004-02-11 17:53:06
|
> Besides, rdtsc and queryperformancetimer has some very nasty sincronization > problems with multiple processors (they give the time slightly different > wether the code is run on different processors). QueryPerformanceCounter() typically uses the chip set, rather than CPU, counters, to avoid this problem. It is up to the OS to synchronize RDTSC on boot-up. If it doesn't, the OS is broken. Luckily, I've never used an OS where it was broken. (We had all kinds of fun getting them in sync in the BeOS kernel, but we did it.) Cheers, / h+ |