def madness(self):
def fast():
self.pyEfi.redisDb.incr('pyefi:eye:fast')
def pollRateTest():
self.pollRateRedis('pyefi:eye:fast')
schedule.every(1).seconds.do(pollRateTest)
schedule.every(0.2).seconds.do(fast)
while 1:
schedule.run_pending()
# This is the scheduler tick rate,
# nothing will poll faster than this.
sleep(0.005)
评论列表
文章目录