How to get/check javascript execution time
最近開始睇下D algorithm 既 tutorial
想了解下學左 / 用左會 efficient 幾多呢
這個當然要用時間來 value
最簡單既方法就係計 execution time
在javascript 上如何計execution time 呢?
** 解決方法 **
我們可以使用
console.time(); console.timeEnd(); 來記錄 javascript 的 execution time e.g.
2021-07-03