title: python calculate time for ML learning process
body: <p>Im using scikit-learn to train some models in Jupyter Lab (IPython) and its something I let it run on my Windows 10 laptop that can take a few hours.</p>
  
  <p>Would anyone have any tips for calculating the time to train? In IPython I just do a run all cells and use this code in the beginning &amp; end cell. For example-</p>
  
  <pre><code>import time
  
  print('Lets GO!')
  start = time.ctime()
  </code></pre>
  
  <p>Come back a few hours later, (ML training code running)</p>
  
  <pre><code>end = time.ctime()
  
  print('all done!')
  print('started', start)
  print('finished',end)
  </code></pre>
  
  <p>I can only glance at the time difference but is it possible to give me a elapsed hours &amp; minutes between start and end?</p>