[fpc-pascal]High resolution timers on linux ?
Marco van de Voort
marcov at stack.nl
Tue Aug 28 11:34:11 CEST 2001
>
> This piece of software is meant to be running on a
> SingleBoardComputer running a Intel 386EX Microprocessor @ 25 Mhz
> with a 2.2."something" kernel
Then you might not be able to get such resolutions. I don't know exactly how
far the ordinary timer can go.
> I suppose it still can use the usleep function,
> if it is implementet into fpc ?
FPC isn't the problem. If it is a problem, it is either hardware or OS.
If it is callable from gcc (c), it can be done in FPC.
It turns out that usleep is based on nanosleep. Afaik it is
> Or if the nanosleep function works on old x386 type processors ?
I don't see warnings. I think simply try to use these functions in a few
small testprograms, and then determine if the resolution they provide is
adequate. If not, I think you should talk to your hardware vendor, maybe
the embedded system has another (hardware) way of doing precise timings)
More information about the fpc-pascal
mailing list