Average Rating:

1.00 by 2 users.

29 Downloads, 90 Views

2 Comment(s)


By: Sean Massey 21 Apr 2011 02:41 PM UTC in the category: Beginner Event 10


Measure time that Start-Sleep takes to complete.
##2011 Scripting Games Beginner Event 10
##Script Name: beginner10_2011.ps1
##By Sean Massey
##Date: 4/21/2011

$seconds = (Measure-Command -Expression {$command} ).seconds
Write-Host "The command took $seconds to run."


4/21/2011 2:54 PM
Doh! This is what I get for rushing to submit without checking my work...again. Burned by hastiness.
4/23/2011 11:18 PM
Don't feel bad. We've ALLLLLLLLL done it. So maybe a few more lines and you would have done it ;)

We call those troublemaking things that happen "the Demo gods" ... shhhhh