How would you calculate the time it took to run a command? Specifically, I want to know the time it takes to return a value in a Shell command. I wrote this up, would it work? (Psuedocode)
a=currentTime [command] b=currentTime print b-a
If translated into Applescript would this work? Is there a better way to do this when calculating the runtime of a shell command (the command is run via
do shell command)?