[fpc-pascal]High resolution timers on linux ?
Lee, John
LeeJ at logica.com
Tue Oct 2 13:45:21 CEST 2001
The best timers, which work on all i386s supporting linux, go32, win32, os2
for vpascal, fpc & maybe others are IMHO, those from Thomas Schatzl's cpu
unit (see his web site)- http://members.yline.com/~tom_at_work/index.html J
-----Original Message-----
From: Kuba Ober [mailto:kuba at mareimbrium.org]
Sent: 02 October 2001 08:30
To: fpc-pascal at deadlock.et.tudelft.nl
Subject: Re: [fpc-pascal]High resolution timers on linux ?
> > I have a unit I've used quite a lot some years ago, it was written for
> > Borland Pascal, so you will need to modify it slightly. As far as I can
> > remember, its precision was below a microsecond and didn't even
reprogram
> > the timer (it did modify one setting but not the actual rate so it
didn't
> > disturb other software running). The trick is that although the usual
> > timer interrupt is very rare, the timer chip itself counts rather fast.
> > All you have to do is to read this counter value and use it to form a
> > very high resolution timer.
>
> I think you missed the point: You can only use that kind of trick under
> DOS, he wanted a solution that works under Linux. Under Linux you would
> need a kernel module for that and that's probably beyond the scope of
> this mailing-list and is not even possible with FPC (AFAIK).
Huh??
You can program i/o ports as you wish, as long as your program starts as
root, gets proper ioperms, and then drops root privileges. Not very clean,
and not portable outside ibm-pc compatibles, but works ;-).
Kuba
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
More information about the fpc-pascal
mailing list