title: How can I use a Windows batch file to measure the performance of console application?
body: <p>How can I write a simple batch file to measure the performance of a console-based application? The console application accepts two command line arguments.</p>
  
  <p>I would like to get:</p>
  
  <pre><code>StartTime = System Dos time
  myconsoleapp arg1, arg2
  StopTime = System Dos Time
  timeDelta = stoptime - starttime
  </code></pre>
  
  <p>I would write the timeDelta to a file or display on the console.</p>