[Tutor] Making a function run every second.

Mic o0MB0o at hotmail.se
Tue Nov 29 16:31:35 CET 2011

-----Ursprungligt meddelande----- 
From: bodsda at googlemail.com
Sent: Tuesday, November 29, 2011 4:19 PM
To: Mic ; tutor-bounces+bodsda=googlemail.com at python.org ; Tutor - python 
Subject: Re: [Tutor] Making a function run every second.

>You won't get it exactly on because the time it takes to call the function 
>will affect your trigger time.

Alright, but that doesn't matter. About every second would be good.

>I would use something like an infinite loop with a 1 second sleep after the 
>function call

I see, could you explain a little more detailed?

Thanks you for your reply!

More information about the Tutor mailing list