title: Compute elapsed time
body: <p>I am looking for some JavaScript simple samples to compute elapsed time. My scenario is, for a specific point of execution in JavaScript code, I want to record a start time. And at another specific point of execution in JavaScript code, I want to record an end time.</p>
  
  <p>Then, I want to calculate the elapsed time in the form of: how many Days, Hours, Minutes and Seconds are elapsed between end time and start time, for example: <code>0 Days, 2 Hours, 3 Minutes and 10 Seconds are elapsed</code>.</p>
  
  <p>Any reference simple samples? :-)</p>
  
  <p>Thanks in advance,</p>
  
  <p>George</p>