apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@apache.org>
Subject Re: Why not POSIX time_t?
Date Mon, 15 Jul 2002 03:56:39 GMT
On Sun, Jul 14, 2002 at 07:42:09PM -0700, Brian Pane wrote:
> It's a little more efficient if you put the result in
> a struct rather than a scalar, but you still have to do
> the carry from the seconds field to the microseconds field
> if time1.tv_usec < time2.tv_usec.  Minimally, subtraction
> of the structs requires two subtractions, a comparison,
> and a conditional branch.

Now, what are we more likely to do:

1) Retrieve the seconds from the time value
2) Subtract two time values

For httpd, I'm pretty sure what the answer is.  And, I believe the
answer to that dictates our time structure.  -- justin

Mime
View raw message