mirror of https://github.com/stella-emu/stella.git
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:
parent
94d59674ad
commit
c30051b0a3
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue