you could store $ticks or $ctime in a variable at the start of a script, then calculate the difference at the end.

for example:

Code:
var %ticks $ticks
;; code goes here
echo -a completed in $calc(($ticks - %ticks) / 1000) seconds.