[maemo-developers] [maemo-developers] delay

From: Kimmo.Hamalainen at nokia.com Kimmo.Hamalainen at nokia.com
Date: Wed Aug 31 16:08:22 EEST 2005
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: maemo-developers-bounces at maemo.org
> [mailto:maemo-developers-bounces at maemo.org]On Behalf Of ext Aleksandr
> Koltsoff
> Sent: 31 August, 2005 09:52
> To: maemo-developers at maemo.org
> 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
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
> 

More information about the maemo-developers mailing list