Fixed Atari_time delay loop time calculator, which was causing a hang when a very large time delay would be sent as a parameter to usleep

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@367 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
markgrebe 2005-02-21 19:32:07 +00:00
parent 94d59674ad
commit c30051b0a3
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: mainSDL.cxx,v 1.8 2005-02-18 05:31:47 markgrebe Exp $
// $Id: mainSDL.cxx,v 1.9 2005-02-21 19:32:07 markgrebe Exp $
//============================================================================
#include <fstream>
@ -1209,7 +1209,7 @@ static double Atari_time(void)
struct timeval tp;
gettimeofday(&tp, NULL);
return 1000000 * tp.tv_sec + 1e-6 * tp.tv_usec;
return tp.tv_sec + 1e-6 * tp.tv_usec;
}