Report abuse


			
class Object
  def loop_for(time, &block)
    finish = Time.now + time
    yield while Time.now < finish
  end
end