Luke,
See "QueryPerformanceCounter" & "QueryPerformanceFrequency" in the
Delphi/Windows help files - it is the high high-resolution performance
counter functions - these may or may not work on your machine.
As far as I know, these are "real" time counters and not elasped process
time counters - which is what you need in this case I believe.
The other comments made still apply. I believe the TZProfiler stuff is from
the Delphi Super Page and it uses the pentium RDTSC (Read Time Stamp
Counter) instruction.
In all cases the test should be repeated something like 1000 to 10000 or
more times to give an average. This will give you the shortest and average
times. Also in this case watch out for what other processes are doing at the
same time and the effects of any disk caching. Most disks sport access times
from about 5ms to 12ms these days, any faster times will be due to caching
of blocks/read ahead by controllers.
Timing Disk accesses is almost a specialised science on the Win32 platform.
Myles.
> -----Original Message-----
> From: Luke Pascoe [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, 10 March 2000 09:40
> To: Multiple recipients of list delphi
> Subject: [DUG]: Timing less than 1ms
>
> I'm timing some disk access, and I need a division of time less than 1
> millisecond (GetTickCount)
>
> Is there any way to do this?
>
> Luke Pascoe
> Programming
> Ihug
>
> --------------------------------------------------------------------------
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz