From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 09:38:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2BB316A4D5 for ; Tue, 23 Mar 2004 09:38:14 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B4D543D1D for ; Tue, 23 Mar 2004 09:38:14 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i2NHc2mZ002983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Mar 2004 17:38:02 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2NHc261002982; Tue, 23 Mar 2004 17:38:02 GMT (envelope-from matthew) Date: Tue, 23 Mar 2004 17:38:02 +0000 From: Matthew Seaman To: Chris Landauer Message-ID: <20040323173802.GC973@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Chris Landauer , freebsd-questions@freebsd.org References: <200403222340.i2MNewU01602@calamari.aero.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s9fJI615cBHmzTOP" Content-Disposition: inline In-Reply-To: <200403222340.i2MNewU01602@calamari.aero.org> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040316, clamav-milter version 0.67l cc: freebsd-questions@freebsd.org Subject: Re: wraparound value for time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 17:38:14 -0000 --s9fJI615cBHmzTOP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 22, 2004 at 03:40:58PM -0800, Chris Landauer wrote: =20 > i tried to figure out where the actual code for time is, but i can't quite > tell - it appears to be buried inside csh somewhere (it also appears that > there are several different possibilities for the data type used, dependi= ng on > some compile time parameters for the csh compilation) There's also a standalone time(1) command which does much the same as the shell built-in 'time' but has completely different internals. % time date=20 Tue Mar 23 17:32:39 GMT 2004 0.000u 0.003s 0:00.02 0.0% 0+0k 1+0io 5pf+0w =20 % /usr/bin/time -h date Tue Mar 23 17:33:44 GMT 2004 0.00s real 0.00s user 0.00s sys As you can see, the resolution is lower than the builtin. With any luck the internal representation will be different and so the supported range of values may be larger. You can get hold of the other usage information for the process by adding a '-l' flag. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --s9fJI615cBHmzTOP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYHX6dtESqEQa7a0RAkHlAJ49QWLvnVJZC6GVYQEpWW+n1hHJ9wCeJSti Dm+BU6TepbLH840/Hzr/qnc= =tJdG -----END PGP SIGNATURE----- --s9fJI615cBHmzTOP--