sean@20: #!/usr/bin/env python3 sean@20: sean@20: """ sean@20: sean@20: author: Sean Engelhardt sean@20: sean@20: This is Free Software unter the terms of the sean@20: GNU GENERAL PUBLIC LICENSE Version 2 or later. sean@20: See http://www.gnu.org/licenses/gpl-3.0.txt for details sean@20: """ sean@20: sean@20: import time, threading sean@20: sean@20: def foo(): sean@20: print(time.ctime()) sean@20: threading.Timer(10, foo).start() sean@20: sean@20: foo()