a place for common google searches ;)
Determining script execution time in PowerShell
How to determinate the total execution time of your script:
Put a new line at the beginning of your script which will start the counter:
1 |
$ElapsedTime = [System.Diagnostics.Stopwatch]::StartNew() |
To see how much time passed by since the start you can simply use:
1 |
Write-Host $ElapsedTime.Elapsed.ToString() |
Comments are closed.