News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Powershell measure-command

Started by herge, February 25, 2013, 05:59:30 AM

Previous topic - Next topic

herge


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
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.