Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sf.kerner.utils.counter;
 
 
 
 
 public class PercentDoneCounterWatch extends PercentDoneCounter {
	public PercentDoneCounterWatch(final Logger logfinal int totalElementsfinal TimeUnit unit) {
		super(logtotalElements);
		final StopWatch w = new StopWatch();
		w.start();
			public void run() {
				log.info("took: " + String.format("%3d"w.stop().getDuration(unit)) + " " + unit);
				w.start();
			}
		});
	}
New to GrepCode? Check out our FAQ X