Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2000 08:07:01 -0500
From:      Brian Dean <bsd@bsdhome.com>
To:        Marcel Moolenaar <marcel@cup.hp.com>
Cc:        "John W. De Boskey" <jwd@bsdwins.com>, "David O'Brien" <obrien@FreeBSD.org>, "Jordan K. Hubbard" <jkh@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src Makefile
Message-ID:  <20001106080701.A31042@vger.bsdhome.com>
In-Reply-To: <3A065D0C.7F65C0A0@cup.hp.com>; from marcel@cup.hp.com on Sun, Nov 05, 2000 at 11:26:04PM -0800
References:  <200011052244.OAA60716@freefall.freebsd.org> <20001105161514.A7914@dragon.nuxi.com> <20001105193652.A14868@bsdwins.com> <3A06250E.E752CF4B@cup.hp.com> <20001106015759.A16228@bsdwins.com> <3A065D0C.7F65C0A0@cup.hp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 05, 2000 at 11:26:04PM -0800, Marcel Moolenaar wrote:

> Output:
> 
> t1 = 973495143 (Sun Nov  5 23:19:03 2000)
> t2 = 973594037 (Tue Nov  7 02:47:17 2000)
> dt = 98894 (1.03:28:14)

While we're picking out colors for the bike shed, here's what I use
from a shell wrapper:

  [...]

  starttime=`date '+%s'`

  eval $MAKECOMMAND

  endtime=`date '+%s'`
  elapsed=`expr $endtime - $starttime`
  days=`date -u -r $elapsed '+%d'`
  days=`expr $days - 1`

  echo "make $MAKETARGET $MAKEOPTIONS is complete"
  echo
  echo "Start Time   = `date -r $starttime '+%Y/%m/%d-%H:%M:%S'`"
  echo "End Time     = `date -r $endtime   '+%Y/%m/%d-%H:%M:%S'`"
  echo "Elapsed Time = `date -u -r $elapsed \"+$days-%H:%M:%S\"`"
  echo

Output:

  make buildworld buildkernel installkernel installworld is complete

  Start Time   = 2000/11/02-18:09:36
  End Time     = 2000/11/02-21:14:03
  Elapsed Time = 0-03:04:27


-Brian
-- 
Brian Dean
bsd@FreeBSD.org
bsd@bsdhome.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001106080701.A31042>