Multiple choice technology

Which of the below CmdLet is used to find the time required for another CmdLet to execute?

  1. Measure-CommandLet

  2. Measure-Command

  3. Measure-Time

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Measure-Command is the PowerShell cmdlet that measures the time it takes to run a script block or command. It returns a TimeSpan object showing elapsed time. Option A Measure-CommandLet is not a valid cmdlet name, and Measure-Time does not exist in PowerShell.