Examples of nanoTime()


Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testGetSetArray0(arrayInt, false);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("get/set/abort array; nanos={}", nanos);

    Object[] array = new Object[SIZE];
    timer.start();
    for (int k = 0; k < COUNT; k++) {
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testIterateArray0(array);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / SIZE;
    log.info("iterate object array; nanos={}", nanos);

    //
    Set<Object> set = new HashSet<Object>();
    for (int k = 0; k < SIZE; k++) {
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT / 10; k++) {
      socket.testIterateSet0(set);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / SIZE * 10;
    log.info("iterate object set; nanos={}", nanos);

    //

    final int FILL_SIZE = 16;
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testFillArray0(fillArray);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("fillArray; nanos={}", nanos);

    ByteBuffer fillBuffer = ByteBuffer.allocateDirect(FILL_SIZE);
    timer.start();
    for (int k = 0; k < COUNT; k++) {
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testFillBuffer0(fillBuffer);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("fillBuffer; nanos={}", nanos);

  }

}
View Full Code Here

Examples of org.apache.jackrabbit.mk.simple.AscendingClock.nanoTime()

    public void testNanos() throws InterruptedException {
        long start, last;
        last = start = System.currentTimeMillis() + 10000;
        AscendingClock c = new AscendingClock(start);
        assertTrue(c.nanoTime() > last * 1000000);
        for (int i = 0; i < 10000; i++) {
            long t = c.nanoTime();
            assertTrue(t > last);
            last = t;
        }
View Full Code Here

Examples of org.apache.jackrabbit.mk.simple.AscendingClock.nanoTime()

        long start, last;
        last = start = System.currentTimeMillis() + 10000;
        AscendingClock c = new AscendingClock(start);
        assertTrue(c.nanoTime() > last * 1000000);
        for (int i = 0; i < 10000; i++) {
            long t = c.nanoTime();
            assertTrue(t > last);
            last = t;
        }
    }

View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.index.old.mk.simple.AscendingClock.nanoTime()

    public void testNanos() throws InterruptedException {
        long start, last;
        last = start = System.currentTimeMillis() + 10000;
        AscendingClock c = new AscendingClock(start);
        assertTrue(c.nanoTime() > last * 1000000);
        for (int i = 0; i < 10000; i++) {
            long t = c.nanoTime();
            assertTrue(t > last);
            last = t;
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.index.old.mk.simple.AscendingClock.nanoTime()

        long start, last;
        last = start = System.currentTimeMillis() + 10000;
        AscendingClock c = new AscendingClock(start);
        assertTrue(c.nanoTime() > last * 1000000);
        for (int i = 0; i < 10000; i++) {
            long t = c.nanoTime();
            assertTrue(t > last);
            last = t;
        }
    }

View Full Code Here

Examples of org.locationtech.geogig.api.Platform.nanoTime()

            return command;
        }

        final Platform platform = command.context().platform();
        final long startTime = platform.currentTimeMillis();
        final long nanoTime = platform.nanoTime();
        final String name = command.getClass().getSimpleName();
        CallStack stack = CallStack.push(name, startTime, nanoTime);
        command.getClientData().put("metrics.callStack", stack);
        return command;
    }
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.