/** * Computes the average raise per given unit of time. * * @param unit the unit of time to compute the average for. * @return the average increment per given time unit */ public double getAvgPer(TimeUnit unit) { return (double) count.get() / getDuration(unit); }