10 Aug
2014
10 Aug
'14
7:26 p.m.
On 08/10/2014 06:23 PM, Tobias Oberstein wrote:
I want to trade less precision (timers fire at less exact times) for higher efficiency (less context switches).
It's easy enough to write one yourself. This might work: from twisted.internet.task import Clock, LoopingCall clock = Clock() LoopingCall(lambda: clock.advance(0.001)).start(0.001) Now just do "clock.callLater" instead of "reactor.callLater".