El Miércoles, 15 de Agosto de 2007 00:57, Dan Nicholson escribió:
>
> I don't know if this is just as silly of a solution, but you can use
> awk instead of perl, and it looks like CLFS-1.0 builds a cross awk.
>
> $ start=`date +%s.%N`
> $ end=`date +%s.%N`
> $ echo $start $end | awk '{printf "%.2f seconds\n", $2 - $1}'
> 3.52 seconds
>
> No escaping, either.
Yeah, that is another option if the $SECONDS trick offers not good values.
Thanks.
--
Manuel Canales Esparcia
Usuario de LFS nº2886: http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES: http://es.tldp.org
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page