Measure the running time of JavaScript code. (Mainly used for calculate the total running time of a piece of code.)