public void endRecovery(long start) {
    long ts = clock.getTime();
    stats.incLong(recoveriesInProgressId, -1);
    if (clock.isEnabled()) {
      stats.incLong(recoveriesTimeId, ts - start);
    }
    stats.incLong(recoveriesCompletedId, 1);
  }
This method sets the end time for update and updates the counters
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionStats.java