common: Move timer to common

This commit is contained in:
GPUCode 2023-11-06 01:17:28 +02:00
parent 369d92fa56
commit 099d01f96c
8 changed files with 84 additions and 69 deletions

View file

@ -1,15 +1,13 @@
#include "emulator.h"
#include <core/PS4/HLE/Graphics/graphics_render.h>
#include <Emulator/Host/controller.h>
#include <Lib/Timer.h>
#include <fmt/core.h>
#include <vulkan_util.h>
#include "core/PS4/HLE/Graphics/video_out.h"
#include "core/hle/libraries/libpad/pad.h"
#include "common/timer.h"
#include "common/singleton.h"
#include "common/version.h"
#include "emulator.h"
#include "core/PS4/HLE/Graphics/graphics_render.h"
#include "Emulator/Host/controller.h"
#include "core/PS4/HLE/Graphics/video_out.h"
#include "core/hle/libraries/libpad/pad.h"
namespace Emu {
@ -92,7 +90,7 @@ static void calculateFps(double game_time_s) {
}
}
void emuRun() {
Lib::Timer timer;
Common::Timer timer;
timer.Start();
auto window_ctx = Common::Singleton<Emu::WindowCtx>::Instance();
{