}
@Override
public void runLatencyTest(int samples, Histogram histogram,
long nanoTimeCost, int threadCount) {
Logger logger = (Logger) LoggerFactory.getLogger(getClass());
for (int i = 0; i < samples; i++) {
long s1 = System.nanoTime();
logger.info(LATENCY_MSG);
long s2 = System.nanoTime();
long value = s2 - s1 - nanoTimeCost;
if (value > 0) {
histogram.addObservation(value);
}