for (LoadTestQueryResult result : queryResults) {
long elapsedTime = result.getEndTime() > 0 ? result.getEndTime() - result.getStartTime() : -1;
statisticsWriter.write(queryRate + "\t" + result.getNodeId() + "\t" + result.getStartTime() + "\t"
+ result.getEndTime() + "\t" + elapsedTime + "\t" + result.getQuery() + "\n");
if (elapsedTime != -1) {
timeStandardDeviation.increment(elapsedTime);
timeMean.increment(elapsedTime);
} else {
++errors;
}
}