title: Timing a command's execution in PowerShell
body: <p>Is there a simple way to time the execution of a command in PowerShell, like the 'time' command in Linux?<br>
  I came up with this:</p>
  
  <pre><code>$s=Get-Date; .\do_something.ps1 ; $e=Get-Date; ($e - $s).TotalSeconds
  </code></pre>
  
  <p>But I would like something simpler like</p>
  
  <pre><code>time .\do_something.ps1
  </code></pre>