Board index » delphi » Chronometer with Delphi 3

Chronometer with Delphi 3

How can I do to use the 8253 circuit in order to have an exact timing
of my functions?
Is there another way to have a precise measure of time?
MOV AL, 00110100b
OUT $43, al

... but the results are so stranges that I think it don't works...

serrand.xav...@free.fr

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 

Re:Chronometer with Delphi 3


do you want to be able to call a function after every n milliseconds or to
calculate how long it takes to evaluate the function?

if the first Delphi 4 has a timer component which fires every x milliseconds.
If the latter there is a function 'Time' which returns the current time
(according to the system clock).  It can be accurate to milliseconds.

If you need accuracy greater than milliseconds, its back to assembler I guess.

Steve.

Quote
>Subject: Chronometer with Delphi 3
>From: serr...@my-deja.com
>Date: Fri, 20 August 1999 07:41 PM EDT
>Message-id: <7pkp2b$k4...@nnrp1.deja.com>

>How can I do to use the 8253 circuit in order to have an exact timing
>of my functions?
>Is there another way to have a precise measure of time?
>MOV AL, 00110100b
>OUT $43, al

>... but the results are so stranges that I think it don't works...

>serrand.xav...@free.fr

Other Threads