Skip to content

Instantly share code, notes, and snippets.

@eligrey
Created September 13, 2009 19:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eligrey/186307 to your computer and use it in GitHub Desktop.
Save eligrey/186307 to your computer and use it in GitHub Desktop.
High-resolution JavaScript timer
@mathiasbynens
Copy link

As of August 2010, chromium.Interval was moved to chrome.Interval. Also, in recent versions of Chromium, window.chromium === undefined (of course, the same goes for Chrome). They now both use window.chrome instead. You might want to update your script.

Thanks for the heads up on chrome.Interval by the way — @jdalton recently added this to Benchmark.js.

@eligrey
Copy link
Author

eligrey commented Oct 30, 2010

Already did in http://github.com/eligrey/timer.js. Redacting this gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment