mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 18:50:30 +00:00
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:
parent
a08bfc1344
commit
a43428253b
7 changed files with 21 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue