diff --git a/brathuhn.py b/brathuhn.py index 360993c..3a4b650 100644 --- a/brathuhn.py +++ b/brathuhn.py @@ -255,5 +255,12 @@ def loop(): time.sleep(s) connect_and_join() print "---------------------------" - +def callAt(func,_time,*args): + s=time.time()-_time + def run(): + if s>0: + time.sleep(s) + func(*args) + threading.Thread(target=run).start() +