Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-13 05:02:51 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-13 05:02:51 +0300
commitd090ee8081cd382c495d3ffffda6190d4f3aa5bf (patch)
tree8d0ce5f1449520b7e839f23664fa2277765c1546 /winsup/cygwin/times.cc
parentbecfe4e93e81d6fd9811a16aa2490c15511c2947 (diff)
* times.cc (systime): Correct precision referenced in comment.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't free original windows station since that will cause strange problems displaying fonts. Reset windows station to original station after creating console. * times.cc (hires_ms::usecs): Only reprime when calculated time is less than system time.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 09343c742..482045449 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -41,7 +41,7 @@ systime ()
x.HighPart = ft.dwHighDateTime;
x.LowPart = ft.dwLowDateTime;
x.QuadPart -= FACTOR; /* Add conversion factor for UNIX vs. Windows base time */
- x.QuadPart /= 10; /* Convert to milliseconds */
+ x.QuadPart /= 10; /* Convert to microseconds */
return x.QuadPart;
}
@@ -644,7 +644,7 @@ hires_ms::usecs ()
LONGLONG t = systime ();
LONGLONG res = initime_us + (((LONGLONG) timeGetTime ()) * 1000LL);
- if (res <= t)
+ if (res < t)
{
inited = false;
prime ();