Adds gettimeofday based on tm_timestamp