DEV Community

Discussion on: 8 JavaScript Tips & Tricks That No One Teaches 🚀

Collapse
 
sebring profile image
J. G. Sebring

console.time will be limited to output in console, hence it is more suitable for temporary debugging/test situations.

Any other cases I'd use performance.now, like displaying time in html, sending to backend etc.

Collapse
 
geminii profile image
Jimmy

Good to know thanks for this tip 😀👍

Some comments have been hidden by the post's author - find out more