wraparound value for time

Chris Pressey cpressey at catseye.mine.nu
Tue Mar 23 12:36:08 PST 2004


On Tue, 23 Mar 2004 17:38:02 +0000
Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:

> On Mon, Mar 22, 2004 at 03:40:58PM -0800, Chris Landauer wrote:
>  
> > 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, depending 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.
> [...]
> With any luck the internal representation will be different and so the
> supported range of values may be larger.

Yep, I just checked the source, and time(1) does use struct timeval's
internally.  Should be sufficient to time something running for several
decades.

-Chris


More information about the freebsd-questions mailing list