Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Measure-Command

Measure-Command - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Measure-Command

Description
Measure running time

Usage


Options


Example(s)
Measures the time it takes to run a "get-eventlog" command:

PS C:\>Measure-Command { get-eventlog }

Compare the performance of -filter and -include:

PS C:\>measure-command {get-childitem c:\windows -include *.txt -recurse}
PS C:\>measure-command {get-childitem c:\windows -filter "*.txt" -recurse}