jeffharbert

Check Execution Time of Powershell Script

Sep 14th, 2016
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##
  2. ## Run these lines from a PowerShell window. Replace name_of_powershell_script.ps1 with the name of your script.
  3. ##
  4. $stopwatch = [Diagnostics.Stopwatch]::StartNew()
  5. .\name_of_powershell_script.ps1
  6. $stopwatch.Stop()
  7. $stopwatch.Elapsed
Advertisement
Add Comment
Please, Sign In to add comment