DEV Community

yeonseong
yeonseong

Posted on

How to check running time in javascript

Code

console.time('timer name');
// something you want to check performace
console.timeEnd('timer name');
Enter fullscreen mode Exit fullscreen mode

Example screenshot

Example screenshot

Top comments (1)

Collapse
 
kth2624 profile image
Intra id : tkim

짧지만 유용하네요 감사합니다.