Advertisement
bergius

Build time, spoken.

Dec 19th, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. & {
  2.     "Build completed in "
  3.     'Days', 'Hours', 'Minutes' | % { if ($elapsed.($_) -gt 0) { "$($elapsed.($_)) $_, " } }
  4.     "$($elapsed.Seconds) seconds and $($elapsed.Milliseconds) milliseconds."
  5. } | Join-String | Out-Speech
  6.  
  7. # Thank you PowerShell and PSCX (http://pscx.codeplex.com/).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement