Re: Timer

From: Date: Tue, 31 Jul 2001 13:25:35 +0000
Subject: Re: Timer
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2423@lists.php.net to get a copy of this message
Checkout gtk_timeout_add in the gtk api reference on gtk.org. you would call it like gtk::timeout_add ($seconds, "userfunc", $userdata); i think. On Tue, 31 Jul 2001, Jonas Delfs wrote: > Hi > > I would like to do something like this, without having sleep() to stop the > whole program: > > function recursiv() > { > sleep(60*21); > // do someting > recursiv(); > } > recursiv(); > > What I am looking for, is a alternative to sleep(). An alternative that > don't make my whole program stop (read: that don't give my mouse/arrow a > hourglass wich results in a program that freeze because of the long > (infinity) progress). > > -- > Mvh./Best Regards | Jonas Delfs, http://delfs.dk > > "hehe ikke set en standart i min kode før, hvad er det for nogle dimser?" - > X > > > > --

« previous php.gtk (#2423) next »