apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Bloom" <...@covalent.net>
Subject RE: cvs commit: apr STATUS
Date Thu, 11 Jul 2002 23:47:00 GMT

> > From: brianp@apache.org [mailto:brianp@apache.org]
> >   @@ -104,6 +104,12 @@
> >           system's time_t time() function to get the time value
> everywhere
> >           except Win32 w/SYSTEMTIME, we only ever have a resolution
of
> >           seconds or milliseconds.  So, why the hell are we storing
> usecs?
> >   +
> >   +           [brianp: This is incorrect.  We use gettimeofday() in
> place
> >   +            of time.  It's faster than time(), and it gives us
> > microseconds
> >   +            in addition to seconds.  Why do you want to throw
away
> the
> >   +            microseconds?!!]
> >   +

This, BTW, is the exact reason that Dean gave two years ago when he
implemented apr_time_t in terms of a 64-bit value with usecs.  I'm not
saying that it is right or wrong, but it is the history.

Ryan



Mime
View raw message