[Tutor] Timer

Joseph Quigley cpu.crazy at gmail.com
Tue Dec 6 16:28:40 CET 2005


thanks.
I'm also trying time.time()
I hope one works.
One disadvantage though, now that i think of it is that time.sleep() freezes
everything and I don't think I want that but I'll try it anyway.

On 12/6/05, Pujo Aji <ajikoe at gmail.com> wrote:
>
> Probably the simplest thing is to make the computer sleep in a specific
> time.
>
> Example:
> def main():
>     time.sleep(2) # sleeping 2 second
>     print 'finish'
>
> Cheers,
> pujo
>
> On 12/6/05, Joseph Quigley <cpu.crazy at gmail.com> wrote:
>
> > I'd like to make a 30 minute timer. How an I do that? With time?
> > Thanks,
> >    Joe
> >
> > --
> > There are 10 different types of people in the world.
> > Those who understand binary and those who don't.
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
> >
> >
>


--
There are 10 different types of people in the world.
Those who understand binary and those who don't.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051206/568f70da/attachment.htm


More information about the Tutor mailing list