public void endBatch(long start, int numberOfEvents) {
    long ts = DistributionStats.getStatTime();

    // Increment number of batches distributed
    stats.incInt(batchesDistributedId, 1);

    // Increment number of events distributed
    stats.incInt(eventsDistributedId, numberOfEvents);

    // Increment batch distribution time
    long elapsed = ts - start;
    stats.incLong(batchDistributionTimeId, elapsed);
  }
Increments the "eventsDistributed" and "batchDistributionTime" stats.

@param start The start of the batch (which is decremented from the current time to determine
       the batch processing time).
@param numberOfEvents The number of events to add to the events distributed stat
geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderStats.java