$Stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
# Do stuff
$Stopwatch.Stop()
$TotalSecs = [math]::Round($stopwatch.Elapsed.TotalSeconds,0)
write-host $TotalSecs
PowerShell: Stopwatch
by
Tags:
$Stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
# Do stuff
$Stopwatch.Stop()
$TotalSecs = [math]::Round($stopwatch.Elapsed.TotalSeconds,0)
write-host $TotalSecs
by
Tags:
Leave a Reply