add option to print latency distribution