There's also sleep(3), which is not so ugly as using system(). select(2) (see bottom of the man page) can be used for more precise sleeping.
-Kimmo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of ext Aleksandr > Koltsoff > Sent: 31 August, 2005 09:52 > To: [email protected] > Subject: Re: [maemo-developers] delay > > > On Tuesday 30 August 2005 12:21, rh wrote: > > Hi all, > > > > Does anyone know what command to make delay time in maemo ? > > And maybe with sample program ? > > Your question doesn't make sense but here goes :-). > > On command line use a program called 'sleep x' where x is the > time to wait in > seconds. Inside a program code use usleep or some variant. > You can also use a > travesty called system("sleep x"), but YMMV based on your > skills. In GTK+ use > GLib timers (they work quite nicely there without blocking > the GUI-loop). > > ak. > _______________________________________________ > maemo-developers mailing list > [email protected] > https://maemo.org/mailman/listinfo/maemo-developers > _______________________________________________ maemo-developers mailing list [email protected] https://maemo.org/mailman/listinfo/maemo-developers
