apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: Why not POSIX time_t?
Date Mon, 15 Jul 2002 02:35:05 GMT
On Sun, Jul 14, 2002 at 07:27:04PM -0700, Brian Pane wrote:
> You're thinking of timeval; time_t is just a long int containing
> seconds since the start of the epoch.

Yes, thanks. :)

> The reason we don't use a struct (timeval or any variant thereof)
> is that doing addition and subtraction on the struct is much slower,
> more complicated, and (if people try to do their own match on the
> struct directly) more error-prone than doing the same ops on a
> scalar.

How exactly is the subtraction slower?I'm not at all sure what you
mean by people matching on the struct directly...

-aaron

Mime
View raw message