title: Get total time and create an average based on timestamps
body: <p><strong>Background:</strong> I want to use coldfusion to find the total time a process takes by taking two timestamps and then adding all of the total times to create an average. </p>
  
  <p>Question: What is the best way to take two timestamps and find out the difference in time by minutes.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>Time Stamp #1:  2015-05-08 15:44:00.000
  Time Stamp #2:  2015-05-11 08:52:00.000
  </code></pre>
  
  <p><strong>So the time between the above timestamps would be:</strong>
  2 Days 6 hours 52 mins  =  3,292 minutes</p>
  
  <p>I want to run this conversion on a handful of timestamp's and take the total minutes and divide to get an average.</p>
  
  <p>To add more information to my question. 1. Yes the values are coming from a DB MSSQL. 2. I am actually going to be using the individual time differences and showing and overall average. So in my for loop each line will have a value like 3,292 (converted to mins or hours or days) and at the end of the for loop I want to show an average of all the lines shown on the page. Let me know if I need to add any other information. </p>