none
Measure execution time with PowerShell RRS feed

  • Question

  • What would be the best way to accomplish following:

    1. Get start time and write it to variable

    2. Do something

    3. Get end time and measure how long it taked from start to end and store the result in variable

    I would need the result be in format like this hours:minutes:seconds and to support 24 hour clock so if the execution starts e.g 11:30 and ends 14:30 it shows correct time.

    Saturday, March 28, 2015 12:12 PM

Answers

All replies