[fpc-pascal]high performance counter for dos/tp7
Marco van de Voort
marcov at stack.nl
Sat Mar 20 20:29:06 CET 2004
> So a computer calling an interrupt routine a million times (for microsecond
> accuracy) that does not seem like a good idea performance wise.
>
> Also calculating the control word (?) can be inaccurate (?): control_word
> := $1234DD div frequency; ( ??? what about the remainder ??? )
>
> So I don't really need any interrupts... I only need to be able to read some
> sort of thing that gives me a tick count and possible a tick frequency.
>
> What are my alternatives for dos/turbo pascal 7 ?
Off topic.
> ( What about 32 bit free pascal :D ? )
Search for Thomas Schatzl's (originally zen-)timer and CPU units. Probably a
link is on the contributed units page.
More information about the fpc-pascal
mailing list