Timer1 = threading.Timer(interval, function) #Start timer--- Timer1.start() #End timer--- Timer1.end()