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".
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to