apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bri...@apache.org>
Subject Re: Why not POSIX time_t?
Date Mon, 15 Jul 2002 19:15:45 GMT
Bill Stoddard wrote:

>Cliff demonstrates that there is significant loss of accuracy using just a
>shift. I believe (faith? :-) that there is a simple solution to this. Don't
>know what it is just now though...
>

I think the simple solution is to pack the data into the apr_time_t
using
    (seconds << 20) + microseconds
instead of
    (seconds * 1000000) + microseconds
:-)

--Brian



Mime
View raw message