void finish() {
      long endTime = System.currentTimeMillis();
      long time = endTime - startTime;
      double timePerOp = ((double) time) / numOps;

      Object st = accum.get(name);
      if (st == null) {
        accum.put(name, new Stats(timePerOp));
      } else {
        Stats stats = (Stats) st;
        stats.sum += timePerOp;
        stats.number++;
        if (timePerOp < stats.least) {
          stats.least = timePerOp;
        }
      }

      if (cname != null) {
        st = accum.get(cname);
        if (st == null) {
          accum.put(cname, new Stats(timePerOp));
        } else {
          Stats stats = (Stats) st;
          stats.sum += timePerOp;
          stats.number++;
          if (timePerOp < stats.least) {
            stats.least = timePerOp;
          }
        }
      }

    }
@test
@synopsis Times and checks basic map operations
geode-core/src/integrationTest/java/org/apache/geode/internal/util/concurrent/cm/MapCheckJUnitTest.java