Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var last = Date.now();
var lag = 0;
setInterval(function(){
lag = Date.now() - last;
last = Date.now();
}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment