title: Performance - Date.now() vs Date.getTime()
body: <pre><code>var timeInMs = Date.now();
  </code></pre>
  
  <p>per <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/now" rel="noreferrer">MDN</a></p>
  
  <p>vs.</p>
  
  <pre><code>var timeInMs = new Date(optional).getTime();
  </code></pre>
  
  <p>per <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getTime" rel="noreferrer">MDN</a>.</p>
  
  <p>Is there any difference between the two, besides the syntax and the ability to set the Date (to not the current) via optional in the second version?</p>
  
  <p>Date.now() is faster - check out the <a href="http://jsperf.com/gettime-vs-now-0" rel="noreferrer">jsperf</a></p>