for (int i = 0; i < STOP_WATCH_COUNT; i++) {
StopWatch stopWatch = new Slf4JStopWatch(loggingTag);
int sleepTime = (int) (Math.random() * 400);
try { Thread.sleep(sleepTime); } catch (Exception e) { /*do nothing*/ }
stopWatch.stop();
}
//this last sleep here seems necessary because otherwise Thread.join() above is returning before
//we're really done.
try { Thread.sleep(10); } catch (Exception e) { /*ignore*/ }