Package org.jnode.util

Examples of org.jnode.util.StopWatch.stop()


            try {
                BootLogInstance.get().debug("Starting " + device.getId());
                //new DeviceStarter(device).start(getDefaultStartTimeout());
                final StopWatch sw = new StopWatch();
                device.start();
                sw.stop();
                if (sw.isElapsedLongerThen(defaultStartTimeout)) {
                    BootLogInstance.get().error("Device startup took " + sw + ": "
                        + device.getId());
                } else if (sw.isElapsedLongerThen(fastStartTimeout)) {
                    BootLogInstance.get().info("Device startup took " + sw + ": "
View Full Code Here


        for (int x = 1; x < cnt; x++) {
            if (run() != i) {
                throw new RuntimeException("Result differs");
            }
        }
        sw.stop();
        System.out.println("Result : " + i + " took " + sw + " for " + cnt + " loops");
    }

    private static int run() {
        int a, b, c, d, e, f, g, h, i, j, k;
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.