Last active
September 1, 2016 10:44
-
-
Save KristerV/b016afbf5961557a4ef981aa7a70bbae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var last = new Date(); | |
function go() { | |
console.log(100000 / (new Date() - last)); | |
last = new Date(); | |
setTimeout(go, 1000) | |
} | |
go(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if anyone finds this, the timing is off enought that the fps isn't real - but it still measures performance quite well.