Currently the hires_ms::usecs() method returns microseconds from the winnt
epoch (i.e. 1 January, 1601). It is then used in gettimeofday() without
adjustment, but that is meant to give seconds and microseconds since the
"Unix" epoch (i.e. 1 January, 1970).

The attached patch changes hires_ms::usecs() to return microseconds since
the "Unix" epoch. I've changed it there since that's the easiest place to
patch it :-)
// Conrad

2002-06-07  Conrad Scott  <[EMAIL PROTECTED]>

 * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601
 to 1970.

Attachment: times.patch
Description: Binary data

2002-06-07  Conrad Scott  <[EMAIL PROTECTED]>

        * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601
        to 1970.

Reply via email to