class CachePerfStats {

  public long endPut(long start, boolean isUpdate) {
    long total = 0;
    if (isUpdate) {
      stats.incLong(updatesId, 1L);
      if (clock.isEnabled()) {
        total = getTime() - start;
        stats.incLong(updateTimeId, total);
      }
    } else {
      stats.incLong(putsId, 1L);
      if (clock.isEnabled()) {
        total = getTime() - start;
        stats.incLong(putTimeId, total);
      }
    }
    return total;
  }

  public  CachePerfStats(StatisticsFactory factory, StatisticsClock clock);
  public  CachePerfStats(StatisticsFactory factory, String textId, StatisticsClock clock);

}