* times.cc (hires_ms::usecs): Correct order when checking if high precision
time is <= current time.
This commit is contained in:
parent
a300f5fd14
commit
c9da5a2183
|
@ -1,3 +1,8 @@
|
||||||
|
2005-12-12 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* times.cc (hires_ms::usecs): Correct order when checking if high
|
||||||
|
precision time is <= current time.
|
||||||
|
|
||||||
2005-12-12 Christopher Faylor <cgf@timesys.com>
|
2005-12-12 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* pinfo.cc (size_copied): New convenience macro.
|
* pinfo.cc (size_copied): New convenience macro.
|
||||||
|
|
|
@ -642,8 +642,9 @@ hires_ms::usecs ()
|
||||||
if (!inited)
|
if (!inited)
|
||||||
prime ();
|
prime ();
|
||||||
|
|
||||||
|
LONGLONG t = systime ();
|
||||||
LONGLONG res = initime_us + (((LONGLONG) timeGetTime ()) * 1000LL);
|
LONGLONG res = initime_us + (((LONGLONG) timeGetTime ()) * 1000LL);
|
||||||
if (res <= systime ())
|
if (res <= t)
|
||||||
{
|
{
|
||||||
inited = false;
|
inited = false;
|
||||||
prime ();
|
prime ();
|
||||||
|
|
Loading…
Reference in New Issue