- time consume
console.time("answer time"); alert("Click to continue"); console.time("answer time"); alert("Do a bunch of other stuff..."); console.timeEnd("answer time");
Use performance.now() diff
performance.now()
Seonglae Cho
Seonglae Choconsole.time("answer time"); alert("Click to continue"); console.time("answer time"); alert("Do a bunch of other stuff..."); console.timeEnd("answer time");
performance.now()