Factorize ElapsedTime implementations by restricting HAVE_GETTIMEOFDAY #ifdef's.