There's lots of questions about it but I don't quite get it yet.
I have to upload some code into a server to run 24/7, and this code will be basically something like this:
while True:
variable1 = function1()
variable2 = function2()
variable3 = function3()
So let's say I want to do variable2 = function2()
once every hour or so, for performance (I don't understand much about it, but I think it'll do good to put a timer on it)
I can't use time.sleep()
on it because the code has to keep going
I mentioned the server thing because I don't know if answers using a system timer works with it, I'm still learning how to do it.
Forgot to say I'm using Python 2.7