test for gettimeofday