apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <brian.p...@cnet.com>
Subject Re: apr_time_t --> apr_time_usec_t
Date Mon, 10 Jun 2002 22:54:54 GMT
Ryan Bloom wrote:

>This is going to break EVERY apr app out there.  I have no problem with
>the change, but everything is going to be broken.  Is there any way to
>do this by creating an apr_time32_t, or something that will keep the
>default at 64-bit, and allow people to use 32 if they specify it?

How about leaving apr_time_t unchanged and adding an apr_timeval:

  typedef struct {
      unsigned tv_sec;
      unsigned tv_usec;
  } apr_timeval;

  apr_status_t apr_timeval_now(apr_timeval* time)
to complement (not replace) the existing apr_time_now()
and apr_timeval versions of other time functions.


View raw message