Tag: execution time

  • How to find execution time in javascript?

    Let’s say you want to find out the time the code you wrote took to run. There is an easy way in javascript to do it. Just use console.time() and console.timeEnd() methods. Here is an example: In the above code I am using a variable totalTime to give a label (against which the total execution…