[Twisted-Python] timer granularity

Tommi Virtanen tv at twistedmatrix.com
Sat Sep 14 10:57:40 EDT 2002

On Sat, Sep 14, 2002 at 11:57:42AM +1000, Andrew Bennetts wrote:
> Secondly, yes Twisted supports sub-second event timers.  The timing
> is done using the OS's select(2) call (or poll(2), or kqueue, etc,
> depending on which reactor you're using).  select(2)'s man page
> *claims* it supports microsecond resolution, but my suspicion is
> that you probably can't rely on more than about millisecond
> resolution.

	The kernel only makes claims that that it will
	delay _atleast_ that long. Number of runnable
	processes, current process priority, disk IO
	load (including swap) etc. all affect it..

	On i386, the kernel ticks along at 100 Hz, so
	AFAIK that's about the range you will get at best.

:(){ :|:&};:

More information about the Twisted-Python mailing list