I'm trying to create a program that syncs with a server every 60 seconds. The code I'm using to do that looks like:
threading.Timer(60, self.sync, [""]).start()
Pretty simple, and works great. The issue is if I decide to suspend the machine for a period of time and then come back, it doesn't work anymore. It's as if the timer stopped working. I suspect this has to do with the gap in real-world time as perceived by the timer, but I'm not sure how to make it work.
The app I'm making is targeted at OSX, so maybe there is a system-level timer that I could have access to?