* times.cc (hires_ms::usecs): Subtract from slop from system time or we'll
always end up priming the pump.
This commit is contained in:
parent
d090ee8081
commit
56b5372519
|
@ -1,3 +1,8 @@
|
|||
2005-12-12 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* times.cc (hires_ms::usecs): Subtract from slop from system time or
|
||||
we'll always end up priming the pump.
|
||||
|
||||
2005-12-12 Nick Duffek <nick@duffek.com>
|
||||
|
||||
* times.cc (systime): Correct precision referenced in comment.
|
||||
|
|
|
@ -644,7 +644,7 @@ hires_ms::usecs ()
|
|||
|
||||
LONGLONG t = systime ();
|
||||
LONGLONG res = initime_us + (((LONGLONG) timeGetTime ()) * 1000LL);
|
||||
if (res < t)
|
||||
if (res < (t - 40000LL))
|
||||
{
|
||||
inited = false;
|
||||
prime ();
|
||||
|
|
Loading…
Reference in New Issue