Re: How can I get the minimum time unit in vc?



Hi Geoff!

Use QueryPerformanceCounter() and QueryPerformanceFrequency() to use the
high resolution timer to time your function. Of course if A() is called a
million times, you are going to get a million samples.

Just a small addition:
See: Programs that use the QueryPerformanceCounter() function may perform poorly in x64-based versions of Windows
http://support.microsoft.com/kb/895980/EN-US/


--
Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/
.


Loading