Paul Jarc wrote:
> date1=`perl -e 'print time()'`
> ...
> date2=`perl -e 'print time()'`
> interval=`expr "$date2" - "$date1"`
This general approach can be used without invoking any external programs:
date1=$SECONDS
...
date2=$SECONDS
interval=$(( $date2 - $date1 ))
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash