Kill the last timeGetTime calls.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4921 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2010-01-21 21:27:52 +00:00
parent a08bfc1344
commit a43428253b
7 changed files with 21 additions and 20 deletions

View File

@ -20,6 +20,7 @@
#include <strsafe.h>
#include "Common.h"
#include "Timer.h"
#include "Statistics.h"
#include "VideoConfig.h"
@ -1017,9 +1018,9 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
static int fpscount = 0;
static unsigned long lasttime;
++fpscount;
if (timeGetTime() - lasttime > 1000)
if (Common::Timer::GetTimeMs() - lasttime > 1000)
{
lasttime = timeGetTime();
lasttime = Common::Timer::GetTimeMs();
s_fps = fpscount - 1;
fpscount = 0;
}