in azure-documentdb-benchmark/src/main/java/com/microsoft/azure/documentdb/benchmark/SimpleTests.java [225:242]
public void requestEnd() {
this.operationCount++;
end = System.nanoTime();
String logLine = null;
if (printLatency) {
logLine = String.format("%s,%d\n", dateFormat.format(new Date()), end - start);
logger.debug(logLine);
}
if (!this.enabled || this.operationCount < warmupOperations) {
return;
}
sb.append(logLine);
if (operationCount >= logBatchSize) {
operationCount = 0;
writeToLogFile();
sb.setLength(0);
}
}