code: public synchronized TimeCounter snapshot(boolean reset) {
  		TimeCounter s = new TimeCounter();
  
  		if (reset) {
  			s.count.set(count.getAndSet(0));
  			s.total.set(total.getAndSet(0));
  			s.min.set(min.getAndSet(0));
  			s.max.set(max.getAndSet(0));
  		} else {
  			s.count.set(count.get());
  			s.total.set(total.get());
  			s.min.set(min.get());
  			s.max.set(max.get());
  		}
  		return s;
  	}
docs: Clones this counter and zeroizes out it afterwards if the 'reset' is
  true.
  
  @param reset
  zero out this counter
  @return clone of this counter