[fpc-pascal]My application is making my system less responsive

Marco van de Voort marcov at stack.nl
Thu Sep 6 16:26:18 CEST 2001


> > > I do use fl_check_forms within the loop but it doesn't seem to
> > help
> > > much.
> > > 
> > > Is there something I can do to alleviate the problem?
> > 
> > Add a usleep (unit linux I hope, otherwise it is called nanosleep)
> > to the
> > loop. E.g. usleep(50000);
> 
> Thanks for your reply but I cannot find any reference to usleep,
> nanosleep or any other sleep in the Free Pascal documentation.

Linux.NanoSleep doesn't seem to be in the docs, but it exists. As far as I
can tell from CVS logs also in 1.0.4

First and only argument is the time in microseconds.





More information about the fpc-pascal mailing list