Use settimeofday to set the time