title: How to format elapsed time from seconds to hours, minutes, seconds and milliseconds in Python?
body: <p>How can I format the time elapsed from seconds to hours, mins, seconds? </p>
  
  <p>My code:</p>
  
  <pre><code>start = time.time()
  ... do something
  elapsed = (time.time() - start)
  </code></pre>
  
  <p>Actual Output:</p>
  
  <pre><code>0.232999801636
  </code></pre>
  
  <p>Desired/Expected output:</p>
  
  <pre><code>00:00:00.23 
  </code></pre>