// ---------------------------------------------------------------------------------------------------------------------------------------------------
// Pick the transaction rate limiter helping object to use based on user request (rate limiting or latency targeting)
IRateLimiter limiter = null;
if (autoTune)
limiter = new LatencyLimiter(Con, procedure, latencyTarget, rateLimit);
else
limiter = new RateLimiter(rateLimit);
// Run the benchmark loop for the requested duration
final long endTime = System.currentTimeMillis() + (1000l * duration);