Search in sources :

Example 1 with Runner

use of com.github.dreamhead.moco.runner.Runner in project moco by dreamhead.

the class StartTask method run.

@Override
public void run(final String[] args) {
    final Runner runner = createRunner(args);
    final Stopwatch stopwatch = Stopwatch.createStarted();
    runner.run();
    Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {

        @Override
        public void run() {
            runner.stop();
            stopwatch.stop();
            logger.info("Total time: " + stopwatch);
        }
    }));
}
Also used : Runner(com.github.dreamhead.moco.runner.Runner) Stopwatch(com.google.common.base.Stopwatch)

Aggregations

Runner (com.github.dreamhead.moco.runner.Runner)1 Stopwatch (com.google.common.base.Stopwatch)1