js how to get time duration code example
Example: javascript calculate time
console.time("timer"); //start time with name = timer
console.timeEnd("timer"); //end timer and log time difference
console.time("timer"); //start time with name = timer
console.timeEnd("timer"); //end timer and log time difference