tjwatson commented on a change in pull request #67:
URL: https://github.com/apache/felix-dev/pull/67#discussion_r544333181
##########
File path:
framework/src/main/java/org/apache/felix/framework/util/ThreadGate.java
##########
@@ -72,14 +74,14 @@ public synchronized void setMessage(Object msg)
**/
public synchronized boolean await(long timeout) throws InterruptedException
{
- long start = System.currentTimeMillis();
+ long start = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
Review comment:
Could convert the timeout input to nanoseconds instead of converting
system.nanoTime to millis possibly multiple times.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]