title: Set a time limit / timeout for a method
body: <p>I have a simple method like this: </p>
  
  <pre><code>public void foo(int runForHowLong) {
      Motor.A.forward();
  }
  </code></pre>
  
  <p>Now a want to be able to pass an argument to foo(), which sets a time limit for how long foo() will run. Like if I send foo(2), it runs for 2 seconds.</p>