I was wondering the same thing, and this is what I came up with.
storeEval | new Date().getTime() | startTime
// The rest of your code here
storeEval | new Date().getTime() | endTime
storeEval | (${endTime} - ${startTime}) / 1000 | scriptExecutionTime
echo | ${scriptExecutionTime} seconds |