[fpc-pascal] fpnanosleep (again)
RainerStratmann at t-online.de
Thu Nov 8 13:43:48 CET 2007
If you know the Processor Speed (MHz) then there is an assembler command which
reads the cpu cycles (for example a 1MHz Processor has 1.000.000
cycles/second) so you can do it in this way.
Am Mittwoch, 7. November 2007 23:27 schrieb John Coppens:
> 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.
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal