Friday, February 19, 2010

twisted task and schedule handler

from twisted.internet import task, reactor
import time
def timer():
print time.ctime()
loop = task.LoopingCall(timer)
loop.start(1, now=True)
reactor.run()

No comments:

Post a Comment