get wall and cpu time for benchmarking