Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Set-StrictMode -Version Latest
  2. $ErrorActionPreference = "Stop"
  3. $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
  4.  
  5. try
  6. {
  7. # do stuff here
  8. }
  9. finally
  10. {
  11. Write-Output "Done! $($stopwatch.Elapsed) ($PSCommandPath)"
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement