Is there a simple way to time the execution of a command in PowerShell, like the \'time\' command in Linux? I came up with this:
$s=Get-Date; .\\do_somet
You can also get the last command from history and subtract its EndExecutionTime from its StartExecutionTime.
EndExecutionTime
StartExecutionTime
.\do_something.ps1 $command = Get-History -Count 1 $command.EndExecutionTime - $command.StartExecutionTime