diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-13 02:55:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-13 02:55:11 +0000 |
commit | 56b53725196eec2da88a567a71de04a3e8e103b6 (patch) | |
tree | 07a1141ec61e7a4600e9efa889548f341c2b0498 | |
parent | d090ee8081cd382c495d3ffffda6190d4f3aa5bf (diff) | |
download | newlib-56b53725196eec2da88a567a71de04a3e8e103b6.zip newlib-56b53725196eec2da88a567a71de04a3e8e103b6.tar.gz newlib-56b53725196eec2da88a567a71de04a3e8e103b6.tar.bz2 |
* times.cc (hires_ms::usecs): Subtract from slop from system time or we'll
always end up priming the pump.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/times.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6111d7f..a010a3a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 4820454..ba387bf 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -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 (); |