[fpc-pascal]High resolution timers on linux ?

Kenneth Due kenneth at computercafeen.dk
Tue Aug 28 20:07:27 CEST 2001


I think usleep will work for me, but how do I get fpc to understand the
command

how do i make a link from fpc to libc ?

At 18:53 28-08-01 +0200, you wrote:
>> > 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)
>
>_______________________________________________
>fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> 
Kenneth Due



http://www.skummel.dk
Tlf. 
 5850 6402 priv.
 2220 7691 arb.

Risikabel : Hybridnet med kinesiske tv-udsendeler





More information about the fpc-pascal mailing list