gettimeofday() replacement for VS