function action() {...};
setTimeout(action, 1000);
setInterval(action, 1000);
def hello():
print("hello, world")
t = Timer(30.0, hello)
t.start() # after 30 seconds, "hello, world" will be printed
import time
while True:
time.sleep(1) # in seconds
action()