Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript count time

var start = new Date().getTime();

for (i = 0; i < 50000; ++i) {
// do something
}

var end = new Date().getTime();
var time = end - start;
alert('Execution time: ' + time);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #count #time
ADD COMMENT
Topic
Name
8+3 =