Skip to content

Instantly share code, notes, and snippets.

@onexdrk
Created October 29, 2012 10:32
Show Gist options
  • Save onexdrk/3972853 to your computer and use it in GitHub Desktop.
Save onexdrk/3972853 to your computer and use it in GitHub Desktop.
JS: Time to action
var start = new Date().getTime();
//action
var elapsed = new Date().getTime() - start;
alert("time to action: "+elapsed);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment