title: function to calculate function fps
body: <p>Ok so I believe I could best describe the issue through code so here goes</p>
  
  <pre class="lang-js prettyprint-override"><code>var clicks = 0;
  
  //function to calculate
  function clicking(){
    clicks += 1;
  }
  
  //function to calculate fps where fn is the name of the function
  function FPS(fn){
    //do stuff
  }
  </code></pre>
  
  
  
  <p>Okay so to clarify I dont want to add a variable to the actual function <code>clicking</code> I would like to be able to call something like
  <code>FPS(clicking)</code> and have the function return a value for example</p>
  
  <pre class="lang-js prettyprint-override"><code>var fps = FPS(clicking);
  </code></pre>
  
  
  
  <p>then i could display the returned number as such
  <code>element.innerHTML = fps</code></p>
  
  <p><strong>EDIT:</strong>
  I know with the current code it seems silly but this is just example coding not what I am actually using</p>