From: Robert Lee Subject: Re: GetTickCount() Vs. Now() Date: 16 Feb 2000 00:00:00 GMT Message-ID: <38AA6823.7BC48EC7@nwu.edu> Content-Transfer-Encoding: 7bit References: <88ccvc$kfa3@bornews.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 15 Feb 2000 12:53:16 -0800, 129.105.9.211 MIME-Version: 1.0 Newsgroups: borland.public.delphi.objectpascal Mark Lauter wrote: > > Does the Now function suffer the same lack of accuracy (+-10ms) as GetTickCount? > Is there a better way to get an absolute time in milliseconds? QueryPerformanceCounter also try this on Pentium or greater: function GetCycleCount:int64; asm DB 0FH DB 031H end; This is minimally invasive and accurate down to about 40 cycles. -- Bob Lee High Performance Delphi - http://www.econos.com/optimize/