Skip to content

Instantly share code, notes, and snippets.

@KristerV
Last active September 1, 2016 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KristerV/b016afbf5961557a4ef981aa7a70bbae to your computer and use it in GitHub Desktop.
Save KristerV/b016afbf5961557a4ef981aa7a70bbae to your computer and use it in GitHub Desktop.
var last = new Date();
function go() {
console.log(100000 / (new Date() - last));
last = new Date();
setTimeout(go, 1000)
}
go();
@KristerV
Copy link
Author

KristerV commented Sep 1, 2016

if anyone finds this, the timing is off enought that the fps isn't real - but it still measures performance quite well.

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