Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.0.0-alpha.7
-
None
-
None
-
1
Description
The code currently assumes System.nanoTime is positive and never overflows.
From the System.nanoTime() javadoc:
To compare two nanoTime values
|
|
long t0 = System.nanoTime();
|
...
|
long t1 = System.nanoTime();
|
|
one should use t1 - t0 < 0, not t1 < t0, because of the possibility of numerical overflow.
|