Tracks the running time for script blocks and cmdlets.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Measure-Command
[-Expression] <ScriptBlock> [-InputObject <PSObject>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The time-expression Cmdlet takes a script block or cmdlet and runs it internally. It times the execution of the operation and returns the results. It does not actually return anything from the script or cmdlet.