Posted By

manatlan on 09/09/09


Tagged

python thread


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

gartenstuhl


thread timer


 / Published in: Python
 

  1. from threading import *
  2.  
  3. def timer():
  4. # do code here
  5.  
  6. t = Timer(10*60.0, timer) # toutes les 10 minutes
  7. t.start()
  8.  
  9. timer() # run it

Report this snippet  

You need to login to post a comment.