Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set-StrictMode -Version Latest
- $ErrorActionPreference = "Stop"
- $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
- try
- {
- # do stuff here
- }
- finally
- {
- Write-Output "Done! $($stopwatch.Elapsed) ($PSCommandPath)"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement