title: CMD measure command execution time
body: <p>I'm stuck trying to print a custom command execution time. If I try to do something like this:</p>
  
  <pre><code>echo %time% &amp; START "TestAgente" /W systeminfo  &amp; echo %time%
  </code></pre>
  
  <p>I got same begin and end time:</p>
  
  <p><a href="https://i.stack.imgur.com/jcPyG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jcPyG.png" alt="enter image description here"></a></p>
  
  <p>I have tried with some combinations playing with delayed-expansion, but I think it fails (I guess) because in running 3 commands in a line instead of batch file.</p>
  
  <p>Does anyone done something like this (without PowerShell). It has to be a single command line that someone could copy, paste and execute.</p>