title: Measuring Elapsed time using Python 2.7 time module
body: <p>I am trying to find the difference between two times using time module and then convert it to datetime format using strftime but I get a strange output for elapsed time starting from 1970, what is the best way to find elapsed time using python?</p>
  
  <pre><code>start_time = time()
  info('My Start Time ' + datetime.fromtimestamp(start_time).strftime('%d-%m-%Y %H:%M:%S'))
  sleep(5)
  elapsed_time = time() - start_time
  info('My Elapsed Time' + datetime.fromtimestamp(elapsed_time).strftime('%d-%m-%Y %H:%M:%S'))
  </code></pre>
  
  <p><strong>Output is</strong></p>
  
  <pre><code> [2016-03-17 00:45:16.828277] INFO: Generic: My Start Time 17-03-2016 11:45:16 
   [2016-03-17 00:45:21.832503] INFO: Generic: My Elapsed Time 01-01-1970 10:00:05
  </code></pre>