* print out elapsed seconds on each build cycle

This commit is contained in:
Jeff Carr 2011-10-31 13:48:38 -04:00
parent 47fac34125
commit d3074d9532
1 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,8 @@ cd /root/
hosts="try1 try2 try3 try4 try5"
for host in ${hosts}; do
echo start {host}
START=`date +%s`
echo STARTDOKERN {host} $START
date -u
sync
@ -27,6 +28,9 @@ for host in ${hosts}; do
/root/benchmarks/kernel/build.pl --clean
date -u
sync
echo end {host}
END=`date +%s`
ELAPSE=$(( $END - $START ))
echo ENDDOKERN {host} $END
echo ELAPSEDOKERN $ELAPSE
date -u
done