My threading is set up exactly like the top answer from here. Except that my function is more complex than a print.
import threading
def printit():
threading.Timer(10.0, printit).start()
print "Hello, World!"
printit()
The function takes about 6 seconds to run. On rare occasions, it takes 12-13 seconds to run. Without incurring opportunity costs by extending the wait time, how do I make this timer wait until the function runs?