get time difference from now and a datetime javascript 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