Added -B (--batch_latency) flag to control latency measurement