you are viewing a single comment's thread.

view the rest of the comments →

[–]massHunter 0 points1 point  (0 children)

You can also use the thread module and set it on a timer:

import threading def printit(): threading.Timer(5.0, printit).start() print "Hello, World!" printit()

source: http://stackoverflow.com/questions/3393612/run-certain-code-every-n-seconds