Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript time execution

console.time("My Descriptive Title");

doSomething(); // <--- the function that you want to time

console.timeEnd("My Descriptive Title"); // Argument has to match

// My Descriptive Title: 8917.283ms
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #time #execution
ADD COMMENT
Topic
Name
3+8 =