public void endExecuteFunction(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    stats.incInt(executeFunctionInProgressId, -1);
    int endExecuteFunctionId;
    if (timedOut) {
      endExecuteFunctionId = executeFunctionTimedOutId;
    } else if (failed) {
      endExecuteFunctionId = executeFunctionFailedId;
    } else {
      endExecuteFunctionId = executeFunctionId;
    }
    stats.incInt(endExecuteFunctionId, 1);
    stats.incLong(executeFunctionDurationId, duration);
  }
Records that the specified executeFunction has ended

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