From: Bertram Scharpf Date: 2009-09-09T07:14:46+09:00 Subject: Re: Time based loop limiting Hi, Am Mittwoch, 09. Sep 2009, 01:38:33 +0900 schrieb Michael Tomer: > I'm trying to write a loop that will only run a certain number of times > per second. The proper way to do this is to call the setitimer(2) function that will send SIGALRM periodically to the process. It has been discussed a long time ago: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/130989 Still I cannot find a setitimer mapping in the Ruby interpreter. So I wrote my own: http://bertram-scharpf.homelinux.com:8808/doc_root/itimer-1.0/rdoc/index.html Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de