Try to use gettimeofday if clock_gettime is failed