* 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:
Christopher Faylor 2005-12-13 02:55:11 +00:00
parent d090ee8081
commit 56b5372519
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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 ();