Add gettimeoftheday function - used for benchmarks