public void registerResult(long hits, double latencyMilliseconds) {
        if (latencyMilliseconds > maxLatency) {
            maxLatency = latencyMilliseconds;
        }
        if (latencyMilliseconds < minLatency) {
            minLatency = latencyMilliseconds;
        }
        totalHits += hits;
        ++totalQueries;
        int latencySlot = (int) Math.round(latencyMilliseconds * RESOLUTION);
        // Note: extreme latency values are ignored in the histogram for simplicity
        if (latencySlot < SLOTS) {
            ++latencyHistogram[latencySlot];
        }
    }
Various metrics stored during query execution

@author bjorncs
predicate-search/src/main/java/com/yahoo/search/predicate/benchmarks/ResultMetrics.java