Luke
I saw a shareware timer advertising better than millisecond timing, I think on
the Delphi Super Page.
The timer is driven from an interupt from the Programable Interrupt Controller
(PIC chip) at intervals software defined in that chip. The resolution therefore
is governed by the interrupt rate set in the PIC chip. If you increase this
rate, then ultimately the timer interrupts demand an increasing amount of CPU
time, to the limit where an interrupt occurs in the middle of an interrupt
response and a stack overflow occurs (God knows what that is in a gigahertz
cpu!). To do this with maximum accuracy and maximum resolution without
overlaoding the CPU you really need to intercept the start and end times of the
event, perhaps chain into the disk interrupt and take a snapshot of the system
timer at the start and the end of the event.
Maybe it would be easier to time multiple disk accesses and arrive at the
figure that way.
If you really need to get into measuring timing, I recall a pascal profiler
project by Dr Dobbs back in the 80s that got deeply into timing events, that
might be worth research.
regards
Leo
SoftOption
Luke Pascoe wrote:
> 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