int currentTotal = 0, currentKeyCount = 0, currentLatency = 0;
for (Thread t : threads)
{
OperationThread thread = (OperationThread) t;
currentTotal += session.operationCount.get(thread.index);
currentKeyCount += session.keyCount.get(thread.index);
currentLatency += session.latencies.get(thread.index);
}