jetty.project/jetty-websocket
Simone Bordet 77ad0189ba
Fixes #8532 - Review System.nanoTime() usages. (#8535)
* Fixes #8532 - Review System.nanoTime() usages.

Introduced o.e.j.util.NanoTime class to deal with nanoTimes.

Now NanoTime.now() should be used instead of System.nanoTime(),
and various <unit>[elapsed|since|until]() methods to calculate nanoTimes.

Furthermore, comparing 2 nanoTimes should be done via isBefore(),
rather than using the < operator, which is wrong as specified in
the System.nanoTime() javadocs.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2022-09-06 09:30:02 +02:00
..
websocket-core-client Combined ByteBufferPool (#8171) 2022-07-04 10:38:30 +10:00
websocket-core-common Merge Release 10.0.11 back into `jetty-10.0.x` branch (#8194) 2022-06-22 16:24:48 -05:00
websocket-core-server Combined ByteBufferPool (#8171) 2022-07-04 10:38:30 +10:00
websocket-core-tests Fixes #8532 - Review System.nanoTime() usages. (#8535) 2022-09-06 09:30:02 +02:00
websocket-javax-client Merge Release 10.0.11 back into `jetty-10.0.x` branch (#8194) 2022-06-22 16:24:48 -05:00
websocket-javax-common remove check for isOutputOpen and ignore failure in callback. 2022-08-04 07:44:37 +10:00
websocket-javax-server Merge Release 10.0.11 back into `jetty-10.0.x` branch (#8194) 2022-06-22 16:24:48 -05:00
websocket-javax-tests simplify pom by using simple property rather than xml fragment (#7580) 2022-07-14 09:42:28 +10:00
websocket-jetty-api Merge pull request #8164 from eclipse/jetty-10.0.x-8151-websocketClose 2022-06-29 16:30:27 +10:00
websocket-jetty-client Fixes #8532 - Review System.nanoTime() usages. (#8535) 2022-09-06 09:30:02 +02:00
websocket-jetty-common remove check for isOutputOpen and ignore failure in callback. 2022-08-04 07:44:37 +10:00
websocket-jetty-server Merge Release 10.0.11 back into `jetty-10.0.x` branch (#8194) 2022-06-22 16:24:48 -05:00
websocket-jetty-tests simplify pom by using simple property rather than xml fragment (#7580) 2022-07-14 09:42:28 +10:00
websocket-servlet Merge Release 10.0.11 back into `jetty-10.0.x` branch (#8194) 2022-06-22 16:24:48 -05:00
pom.xml Merge Release 10.0.11 back into `jetty-10.0.x` branch (#8194) 2022-06-22 16:24:48 -05:00