[fpc-pascal]Waiting for X seconds?

Mirek Novak mirek.novak at auto.cz
Mon Sep 3 13:57:02 CEST 2001


Try Alarm() and Pause().  see manual for more info (units.pdf - 11.3.


Michael Vogel píše:

> Hi!
> I just want to write a small daemon that has to look every X seconds, if a
> special situtation exists and then had to react.
> Now I just could make a repeat until-loop, but I guess that would cost to
> much CPU-time?
> What is the right method to tell a programm to sleep for X seconds?
> (and how to fork?)
> Thanks!
> Michael
> --
> The only way to get rid of a temptation is to yield to it.
>                 -- Oscar Wilde
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mirek.novak.vcf
Type: text/x-vcard
Size: 287 bytes
Desc: Vizitka - Mirek Novak
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20010903/501c3247/attachment.vcf>

More information about the fpc-pascal mailing list