Skip to content

Commit

Permalink
Time and timeEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcervac committed Nov 13, 2024
1 parent 286d8b9 commit 032c786
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions console/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
console.time("label");

let s = 0;
for(let i=0; i<100000; i++){
s += i;
}

console.timeEnd("label");

0 comments on commit 032c786

Please sign in to comment.