call a function every n mseconds

Vedran Furac vedranfREMOVE at riteh.hr
Sat Feb 21 19:37:32 EST 2004


How can I call a function every time a specified number of milliseconds
elapses? Javascript has setInterval() function and I need something like
that. Currently I use this:
def function():
	[...]
	t = threading.Timer(n, function)
	t.start()
function()



More information about the Python-list mailing list