I would like to use AppleScript to batch run a bunch of programs and get the time that each one ran.
Example: From the command line I would type
time ls
$ time ls
Applications
bin
net
Library
... etc
real 0m0.013s
user 0m0.002s
sys 0m0.006s
set result to do shell script "time ls"
Applications
bin
net
Library
... etc
set result to do shell script "time"
""
ls
ls
Use the exec 2>&1
command to redirect the STDERR to STDOUT, like this:
do shell script "exec 2>&1; time ls"