Re: How can I get the minimum time unit in vc?
- From: "Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach@xxxxxxxxx>
- Date: Thu, 27 Oct 2005 10:15:34 +0200
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/ .
- Follow-Ups:
- Re: How can I get the minimum time unit in vc?
- From: Johnny Lee
- Re: How can I get the minimum time unit in vc?
- References:
- How can I get the minimum time unit in vc?
- From: Johnny Lee
- How can I get the minimum time unit in vc?
- Prev by Date: Re: How can I get the minimum time unit in vc?
- Next by Date: Re: How can I get the minimum time unit in vc?
- Previous by thread: Re: How can I get the minimum time unit in vc?
- Next by thread: Re: How can I get the minimum time unit in vc?
- Index(es):
Loading