Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Time How Long PowerShell Command Takes to Complete

$
0
0

Summary: Easily time how long a Windows PowerShell command takes to complete.

Hey, Scripting Guy! Question How can I time how long a command takes to complete in Windows PowerShell?

Hey, Scripting Guy! Answer Use the Measure-Command cmdlet—for example, to time how long it takes to Get-Process (gps is an alias)
           to complete, put the command in a script block and call Measure-Command:

Measure-Command {gps}


Viewing all articles
Browse latest Browse all 3333

Trending Articles