The MASM Forum

Miscellaneous => Miscellaneous Projects => Topic started by: herge on February 25, 2013, 05:59:30 AM

Title: Powershell measure-command
Post by: herge on February 25, 2013, 05:59:30 AM

Hi Rubber Duck Fans:

If you have powershell from MicroSoft.
You can try this:
Note the brackets are curly as in c++.

PS C:\ps1> measure-command {c:\masm32\bin\showtime.exe}


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 53
Ticks             : 532852
TotalDays         : 6.16726851851852E-07
TotalHours        : 1.48014444444444E-05
TotalMinutes      : 0.000888086666666667
TotalSeconds      : 0.0532852
TotalMilliseconds : 53.2852



PS C:\ps1>


Plug the filename in the curly brackets and Bob's your uncle.
Regards herge