Code example for TimeUnit

Methods: toMillis

0
            query = null;
            threadName = null;
            numDocuments = 0;
        } 
        else { 
            durationMS = TimeUnit.NANOSECONDS.toMillis(currentNanoTime - activeState.getStartTime());
            namespace = activeState.getNamespace();
            opCode = activeState.getOpCode();
            query = activeState.getQuery();
            threadName = activeState.getThreadName();
            numDocuments = activeState.getNumDocuments();
        } 
        localPort = port.getLocalPort();
    } 
 
    public String getNamespace() {
        return namespace;
    } 
 
    public OutMessage.OpCode getOpCode() { 
Connect your IDE to all the code out there  Get Codota for Java