Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need a script that I can call/include from another batch file (.bat) that can calculate the amount of time it takes to execute the first batch file. The script would be used for automation on both Windows 7 x64 and Windows Server 2008 R2 (just incase it matters). Any advice on how I can accomplish this?

share|improve this question
add comment

1 Answer

Surround your batch call with re-directed outputs. Then note the time the re-directed output files were created.

Example

echo T > start.time
do_your_batch_file
echo T > end.time
dir *.time
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.