diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-13 03:43:46 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-13 03:43:46 +0300 |
commit | c9da5a2183c06038d07b6aa13482392f9054b94c (patch) | |
tree | faa03a6df6c67e7b77654c0e3e1018efbd52c783 /winsup/cygwin/times.cc | |
parent | a300f5fd14bc7d8c89e1350415e53b6ba4f45956 (diff) |
* times.cc (hires_ms::usecs): Correct order when checking if high precision
time is <= current time.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r-- | winsup/cygwin/times.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 793864a7a..09343c742 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -642,8 +642,9 @@ hires_ms::usecs () if (!inited) prime (); + LONGLONG t = systime (); LONGLONG res = initime_us + (((LONGLONG) timeGetTime ()) * 1000LL); - if (res <= systime ()) + if (res <= t) { inited = false; prime (); |