title: I have to find time taken to register,run vm by euca commands using shell script
body: <p>I have to find time taken:</p>
  
  <ol>
  <li>To register image (may be found by using time command)</li>
  <li>Time taken for running (pending to running state).</li>
  <li>Time to login (may be found by using time command)</li>
  </ol>
  
  <p>I don't know how to find this interval time as I need to check state of VM.</p>