* times.cc (hires_ms::usecs): Correct order when checking if high precision
time is <= current time.
This commit is contained in:
@ -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 ();
|
||||
|
Reference in New Issue
Block a user