[fpc-pascal]High resolution timers on linux ?
Marco van de Voort
marcov at stack.nl
Tue Aug 28 18:53:53 CEST 2001
> > 486 ?
> >
> > 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
> >
> > I suppose it still can use the usleep function,
> > if it is implementet into fpc ?
>
> usleep() is a libc function and interface should be available
> in the Linux-unit. It works independant of the underlying platform.
>
> You could also use the ualarm(), if you need a "callback" style
> working. It is in practice, however, equal to set/getitimer().
>
> Please do
> man alarm
> man setitimer
> man usleep
>
> And select whatever you think is good for you. I believe that
> most of these libc-functions can be interfaced through Linux-unit.
The Linux unit is standalone, and doesn't interface to libc.
It contains similar functions though (because they are based on the same
primitives)
More information about the fpc-pascal
mailing list