title: What is the preferred way of getting the frame rate of a JavaFX application?
body: <p>This is quite a simple question:</p>
  
  <p>What is the preferred way of getting the frame rate of a JavaFX application? </p>
  
  <p>Google turns up a result from 2009, but that example pertains to JavaFX 1.x and operates in a weird way (some sort of external meter) to begin with. Not being able to find a better example, I am posting here.</p>
  
  <p>I want to be able to query my JavaFX application (or if necessary, the current scene) and get what the current FPS is.</p>
  
  <p><strong>Update</strong>: Feb. 8th 2015</p>
  
  <p>Various solutions to the problem are posted below as answers. I also found that this question was referenced by the following blog post: <a href="http://tomasmikula.github.io/blog/2015/02/08/measuring-fps-with-reactfx.html" rel="noreferrer">http://tomasmikula.github.io/blog/2015/02/08/measuring-fps-with-reactfx.html</a></p>
  
  <p>Which says that (as a result of the verbosity of the solutions below) measuring FPS was added to ReactFX 2.0 milestone 2. Cool how things travel.</p>