Please Visit: http://ift.tt/1ajReyV
from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iRcG6O
via LifeLong Community
time - Timing a command's execution in PowerShell - Stack Overflow
Measure-Command { .\do_something.ps1 }
Note that one minor downside of Measure-Command is that you see no stdout output. If you want to see the output, then you can use the .NET Stopwatch object e.g.:
$sw = [Diagnostics.Stopwatch]::StartNew()
.\do_something.ps1
$sw.Stop()
$sw.Elapsedhttp://http://ift.tt/1iRcG6H
http://ift.tt/1srTpd2
Measure-Command { .\do_something.ps1 }
Note that one minor downside of Measure-Command is that you see no stdout output. If you want to see the output, then you can use the .NET Stopwatch object e.g.:
$sw = [Diagnostics.Stopwatch]::StartNew()
.\do_something.ps1
$sw.Stop()
$sw.Elapsedhttp://http://ift.tt/1iRcG6H
http://ift.tt/1srTpd2
from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iRcG6O
via LifeLong Community
No comments:
Post a Comment