don't use gettimeofday. We'll use helper function which uses clock_gettime