Skip to content

Instantly share code, notes, and snippets.

@poshcodebear
Created July 31, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poshcodebear/565ab9bdae1e73a27949 to your computer and use it in GitHub Desktop.
Save poshcodebear/565ab9bdae1e73a27949 to your computer and use it in GitHub Desktop.
Test execution speed with Measure-Command - Sample output
# Get-WMIObject:
Days : 0
Hours : 0
Minutes : 7
Seconds : 11
Milliseconds : 568
Ticks : 4315681996
TotalDays : 0.00499500231018519
TotalHours : 0.119880055444444
TotalMinutes : 7.19280332666667
TotalSeconds : 431.5681996
TotalMilliseconds : 431568.1996
# Get-CIMInstance:
Days : 0
Hours : 0
Minutes : 0
Seconds : 25
Milliseconds : 214
Ticks : 252142204
TotalDays : 0.00029183125462963
TotalHours : 0.00700395011111111
TotalMinutes : 0.420237006666667
TotalSeconds : 25.2142204
TotalMilliseconds : 25214.2204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment