Timer

[email protected] ("Jonas Delfs")
Newsgroups php.gtk
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.