Fix timeout calculations.
Fix timeout calculations.

markpizz/pthreads4w-code,CaptTofu/Pthreads-win32,nicolaichuk/pthread-win32,vancegroup-mirrors/pthreads-win32,nicolaichuk/pthread-win32,markpizz/pthreads4w-code,nicolaichuk/pthread-win32,vancegroup-mirrors/pthreads-win32,markpizz/pthreads4w-code,markpizz/pthreads4w-code,membase/pthreads-win,VFR-maniac/pthreads-win32,vancegroup-mirrors/pthreads-win32,vancegroup-mirrors/pthreads-win32,nicolaichuk/pthread-win32