* 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.
This commit is contained in:
Christopher Faylor
2005-12-13 02:02:51 +00:00
parent becfe4e93e
commit d090ee8081
3 changed files with 20 additions and 6 deletions

View File

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