Benchmark monotonic and cputime of a piece of code