Date: Tue, 23 Mar 2004 17:38:02 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Chris Landauer <cal@rushg.aero.org> Cc: freebsd-questions@freebsd.org Subject: Re: wraparound value for time Message-ID: <20040323173802.GC973@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <200403222340.i2MNewU01602@calamari.aero.org> References: <200403222340.i2MNewU01602@calamari.aero.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040323173802.GC973>
