[fpc-pascal] fpnanosleep (again)

John Coppens john at jcoppens.com
Wed Nov 7 23:27:39 CET 2007


Hi all.

I need a small delay in my program, which bitbangs an i2c interface
connected to the parallel port. This is mainly for educational purposes,
so please don't question the wiseness of this decision.

Is there any simple way (short of writing a kernel module) of delaying
less than the HZ value? Weirdly, fpNanosleep seems to delay 8.3 ms
minimally (weird, 'cause that's less than the HZ value). 

I'm using a 2.6 kernel.

John



More information about the fpc-pascal mailing list