Perf optimization (disable system calls to get time)

In benchmarks where metrics are not required, the system calls to get time (System.currentTimeMillis()) may introduce an unnecessary overhead.
This change enables such benchmarks to disable these system calls to get metric durations.

It is important to note that apart from these system time calls metric generation does not have an object allocation overhead. So, for any benchmarks the metrics infrastructure should not pose much overhead.