Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .