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);
}
}));
}