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