/inc [-cszuN] <%var> [value]
This increases the value of %var by value.
If you specify the -uN switch, %var is increased by the value once and then %var is unset N seconds later, assuming it is not set again by another script.
The -c switch increases %var once per second.
The -z switch decreases %var until it reaches zero and then unsets it.
-
A better way to time something is store $ctime in a variable when you want to start timing. To determine the elapsed time simply $calc($ctime - %variable)