title: JavaFX: Call method on specific time
body: <p>Is there a way to simply get a method to run on a specific frame or time?
  I've read up on the Timeline and Keyframe + KeyValue documentation and it seems overkill for what I am trying to achieve.
  I'm trying to get something as simple as this, (refer to my pesudocode):</p>
  
  <pre><code>atTime(Duration.millis(2000)){
       myMethod();
     } //do this at the time 00:00:02
  atTime(Duration.millis(3000)){
       myMethod();
     } //do this at the time 00:00:03
  atTime(Duration.millis(5000)){
       myMethod();
     } //do this at the time 00:00:05
  </code></pre>
  
  <p>And I keep timing when my method is called until I want it to stop.
  Is there a way to achieve this without using complicated methods revolving around keyframes and keyvalues?</p>