how to call a function for evry 10 secs

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Jun 29 13:42:02 EDT 2011


hisan wrote:

> Hi All,
> I need to call a function for evry 10 secs
> how can i achieve this in python


import time
while True:
    time.sleep(10)
    function()



-- 
Steven




More information about the Python-list mailing list