JavaScript Wie messe ich die Zeit der Schleife?

console.time('doSomething')
    
doSomething()   // <---- The function you're measuring time for 
    
console.timeEnd('doSomething')
hamzah