Examples of nanos()


Examples of org.agilewiki.jactor2.core.util.Timer.nanos()

     * @param _response The response to this request.
     */
    @Override
    public void processAsyncResponse(final RESPONSE_TYPE _response) {
        final Timer timer = asyncOperation.getTimer();
        timer.updateNanos(timer.nanos() - start, true);
        processObjectResponse(_response);
    }

    /**
     * Returns an exception as a response instead of throwing it.
View Full Code Here

Examples of org.agilewiki.jactor2.core.util.Timer.nanos()

     * @param _response An exception.
     */
    @Override
    public void processAsyncException(final Exception _response) {
        final Timer timer = asyncOperation.getTimer();
        timer.updateNanos(timer.nanos() - start, false);
        processObjectResponse(_response);
    }

    private void pendingCheck() throws Exception {
        if (incomplete && !isCanceled() && hasNoPendingResponses()
View Full Code Here

Examples of org.agilewiki.jactor2.core.util.Timer.nanos()

    }

    @Override
    protected void processRequestMessage() throws Exception {
        final Timer timer = syncOperation.getTimer();
        final long start = timer.nanos();
        boolean success = false;
        final RESPONSE_TYPE result;
        try {
            result = syncOperation.doSync(this);
            success = true;
View Full Code Here

Examples of org.agilewiki.jactor2.core.util.Timer.nanos()

        final RESPONSE_TYPE result;
        try {
            result = syncOperation.doSync(this);
            success = true;
        } finally {
            timer.updateNanos(timer.nanos() - start, success);
        }

        processObjectResponse(result);
    }
View Full Code Here

Examples of org.elasticsearch.common.unit.TimeValue.nanos()

        CacheBuilder cacheBuilder = CacheBuilder.newBuilder();
        if (cacheMaxSize >= 0) {
            cacheBuilder.maximumSize(cacheMaxSize);
        }
        if (cacheExpire != null) {
            cacheBuilder.expireAfterAccess(cacheExpire.nanos(), TimeUnit.NANOSECONDS);
        }
        cacheBuilder.removalListener(new ScriptCacheRemovalListener());
        this.cache = cacheBuilder.build();

        ImmutableMap.Builder<String, ScriptEngineService> builder = ImmutableMap.builder();
View Full Code Here

Examples of org.jnetpcap.JCaptureHeader.nanos()

    packet = TestUtils.getPcapPacket("tests/test-l2tp.pcap", 0);

    JCaptureHeader header = packet.getCaptureHeader();

    assertEquals(1075238237, header.seconds());
    assertEquals(192611000, header.nanos());
    assertEquals(114, header.caplen());
    assertEquals(114, header.wirelen());
    assertEquals(1075238237192L, header.timestampInMillis());
  }
View Full Code Here

Examples of water.util.Timer.nanos()

      Timer t = new Timer();
      for (int l = 0; l < repeats; ++l) {
        PingPongTask ppt = new PingPongTask(payload); //same payload for all nodes
        new RPC<>(node, ppt).call().get(); //blocking send
      }
      times[i] = (double) t.nanos() / repeats;
    }
    return times;
  }

View Full Code Here

Examples of water.util.Timer.nanos()

    Timer t = new Timer();
    for (int l = 0; l < repeats; ++l) {
      new CollectiveTask(payload).doAll(v); //same payload for all nodes
    }
    v.remove(new Futures()).blockForPending();
    return (double) t.nanos() / repeats;
  }

  public boolean toHTML(StringBuilder sb) {
    try {
      sb.append("Origin: " + H2O.SELF._key);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.