Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript how do I measure the time of the loop

console.time('doSomething')
    
doSomething()   // <---- The function you're measuring time for 
    
console.timeEnd('doSomething')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #I #measure #time #loop
ADD COMMENT
Topic
Name
8+8 =