Re: usec timings

From: Joe \ (joe_at_bftsi0.UUCP)
Date: 11/19/03


Date: Tue, 18 Nov 2003 15:52:27 -0800


"Bob Silverman" <pubkeybreaker@aol.comstuff> wrote in message <news:20031118174335.29142.00000483@mb-m12.aol.com>...

> Is there anything available under WINDOZE to do CPU timings at the
> microsecond scale? Microsoft's libraries have a system clock call, but it
> is only millsecond level timing.
>
> Also, I am doing some loop timing studies on some CPU-intensive code.
> What is strange is that the number of clock ticks being returned seems
> ALWAYS to be near a multiple of 16. The code goes:

QueryPerformanceCounter and QueryPerformanceFrequency?
Faster hardware may offer higher frequencies.

--
Joe Foster <mailto:jlfoster%40znet.com>  DC8s in Spaace: <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!