I want to repeatedly execute a function in Python every 60 seconds forever (just like an NSTimer in Objective C). This code will run as a daemon and is effectively like call
Lock your time loop to the system clock like this:
import time starttime = time.time() while True: print "tick" time.sleep(60.0 - ((time.time() - starttime) % 60.0))