public void endPing(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(pingInProgressId, -1);
    int endPingId;
    if (timedOut) {
      endPingId = pingTimedOutId;
    } else if (failed) {
      endPingId = pingFailedId;
    } else {
      endPingId = pingId;
    }
    stats.incInt(endPingId, 1);
    stats.incLong(pingDurationId, duration);
  }
Records that the specified ping has ended

@param startTime the value returned by {@link #startPing}.
@param timedOut true if ping timed out
@param failed true if ping failed
geode-core/src/main/java/org/apache/geode/cache/client/internal/ConnectionStats.java