Thread: timer
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default timer

Good stuff Tom

Thanks, Gord

On Fri, 16 Mar 2007 17:55:21 -0400, "Tom Ogilvy" wrote:

Just to supplement Gordon's response.

Timer has about 1 second resolution which isn't very good for timing code
unless you do a lot of repetitions within the timing loop.

Here is an article showing how to use more precise procedures:
.
How To Use QueryPerformanceCounter to Time Code
http://support.microsoft.com/kb/172338/en-us