Skip to content

Instantly share code, notes, and snippets.

@afonsomatos
Created January 3, 2015 16:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afonsomatos/274e9ac9a064f9251d2d to your computer and use it in GitHub Desktop.
Save afonsomatos/274e9ac9a064f9251d2d to your computer and use it in GitHub Desktop.
Most accurate javascript timing
// Most accurate javascript timing
now = function() {
return performance.now()||
performance.mozNow() ||
performance.msNow() ||
performance.oNow() ||
performance.webkitNow() ||
Date.now() ||
new Date().getTime();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment