title: Ruby timeout a block of code after n *milli* seconds
body: <p>In Ruby, I need to time out the execution of a block of code after n <em>milli</em> seconds. I know that the Ruby Timeout library supports timeouts in <em>seconds</em>:</p>
  
  <p><a href="http://ruby-doc.org/stdlib/libdoc/timeout/rdoc/index.html" rel="noreferrer">http://ruby-doc.org/stdlib/libdoc/timeout/rdoc/index.html</a></p>
  
  <p>Is this possible?</p>