[maemo-developers] [maemo-developers] delay

From: Aleksandr Koltsoff czr770 at iohazard.tts.fi
Date: Wed Aug 31 09:51:51 EEST 2005
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.

More information about the maemo-developers mailing list