<script> const t0 = performance.now(); for (let i = 0; i < 10; i++) { console.log(i); } const t1 = performance.now(); console.log(`Call to doSomething took ${t1 - t0} milliseconds.`); </script>