From: Mike Barsalou Date: 2009-09-09T13:05:27+09:00 Subject: Re: Time based loop limiting On Sep 8, 2:14 pm, Bertram Scharpf wrote: > 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/in... > > Bertram > > -- > Bertram Scharpf > Stuttgart, Deutschland/Germanyhttp://www.bertram-scharpf.de How would one make use of this?