diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-13 02:02:51 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-13 02:02:51 +0000 |
commit | d090ee8081cd382c495d3ffffda6190d4f3aa5bf (patch) | |
tree | 8d0ce5f1449520b7e839f23664fa2277765c1546 /winsup/cygwin/times.cc | |
parent | becfe4e93e81d6fd9811a16aa2490c15511c2947 (diff) | |
download | cygnal-d090ee8081cd382c495d3ffffda6190d4f3aa5bf.tar.gz cygnal-d090ee8081cd382c495d3ffffda6190d4f3aa5bf.tar.bz2 cygnal-d090ee8081cd382c495d3ffffda6190d4f3aa5bf.zip |
* 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.cc | 4 |
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 (); |