core: Remove use of gettimeofday()