Skip to content

Instantly share code, notes, and snippets.

@grplyler
Created July 25, 2020 15:05
Show Gist options
  • Save grplyler/852b4b9437784ecb74b7121769be5ab7 to your computer and use it in GitHub Desktop.
Save grplyler/852b4b9437784ecb74b7121769be5ab7 to your computer and use it in GitHub Desktop.
function test() {
var startTime = new Date().getTime();
var counter = 0;
for(var i = 0; i < 10000000; i++) {
counter += 1
}
var endTime = new Date().getTime();
console.log("Total test time:", endTime - startTime, "ms");
}
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment