The console.time() static method starts a timer you can use to track how long an operation takes.
console.time()
MDN Reference