put if defined linux here in order to disable for Windows, if not it will not compile in windows because windows does not get gettimeofday