Package za.co.enerweb.toolbox.timing

Examples of za.co.enerweb.toolbox.timing.Stopwatch


                + "sping localhost -c 12");
            System.exit(1);
        }
        CommandUtils cu = new CommandUtils();
        cu.setCommandAndArgs(args);
        Stopwatch sw = new Stopwatch();
        try {
            cu.excecute();
        } catch (IOException e) {
            log.error("Error while executing " + args[0], e);
        } finally {
            log.debug("Execution time: {}", sw.getDelta());
        }
    }
View Full Code Here


        if (args.length < 1) {
            log.error("USAGE: java za.co.enerweb.toolbox.io.CommandShell "
                + "sping localhost -c 12");
            System.exit(1);
        }
        Stopwatch sw = new Stopwatch();
        try {
            CommandShell cs = new CommandShell();
            log.debug("Start time: {}", sw.getDelta());
            cs.executeInShell(StringUtils.join(args, " "));
        } catch (IOException e) {
            log.error("Error while executing " + args[0], e);
        } finally {
            log.debug("Execution time: {}", sw.getDelta());
        }
    }
View Full Code Here

TOP

Related Classes of za.co.enerweb.toolbox.timing.Stopwatch

Copyright © 2018 www.massapicom. 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.