commented out gettimeofday to compile on Windows