Mercurial > bottledash
view modules/net_mon/timer_test.py @ 20:1a13a4ecf931
can not recive post-requests wich should deliver if a server is up or down. Updated after a refresh of the webpage, wich will automatically done after 5 seconds
author | sean |
---|---|
date | Wed, 12 Aug 2015 13:45:58 +0200 |
parents | |
children |
line wrap: on
line source
#!/usr/bin/env python3 """ <DECRIPTION> author: Sean Engelhardt <sean.engelhardt@intevation.de> This is Free Software unter the terms of the GNU GENERAL PUBLIC LICENSE Version 2 or later. See http://www.gnu.org/licenses/gpl-3.0.txt for details """ import time, threading def foo(): print(time.ctime()) threading.Timer(10, foo).start() foo()