title: In JavaScript, is there a source for time with a consistent resolution in milliseconds?
body: <p>The Date object in JavaScript performs differently machine to machine and browser to browser in respect to the function's resolution in milliseconds.  I've found most machines have a resolution of about 16 ms on IE, where Chrome or Firefox may have a resolution as good as 1ms.</p>
  
  <p>Is there another function available to JavaScript in general or IE specifically that will give a better time resolution?  I am trying to trap and record <code>keyDown</code> and <code>keyUp</code> times in milliseconds and need it in the +/- 10 ms range or less.</p>
  
  <p>To see an illustration of this, check out the "resolutions of new date()" section of this page.  There is a table with a test button that evaluates the current machine/browser's JavaScript time resolution in milliseconds.  Interestingly, Chrome regularly gets a resolution of 1ms.  </p>
  
  <p><a href="http://www.merlyn.demon.co.uk/js-dates.htm#OV" rel="nofollow noreferrer">http://www.merlyn.demon.co.uk/js-dates.htm#OV</a> </p>
  
  <p>My quest is for a JavaScript date-time method that will give sub 10ms resolution across browsers.  something to replace or improve Date().</p>