mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-24 20:35:01 +00:00
common: Move timer to common
This commit is contained in:
parent
369d92fa56
commit
099d01f96c
8 changed files with 84 additions and 69 deletions
|
@ -1,6 +1,6 @@
|
|||
#include "common/debug.h"
|
||||
#include "common/timer.h"
|
||||
#include "core/hle/kernel/objects/event_queue.h"
|
||||
#include "Lib/Timer.h"
|
||||
|
||||
namespace Core::Kernel {
|
||||
|
||||
|
@ -26,7 +26,7 @@ int EqueueInternal::waitForEvents(SceKernelEvent* ev, int num, u32 micros) {
|
|||
std::unique_lock lock{m_mutex};
|
||||
|
||||
u32 timeElapsed = 0;
|
||||
Lib::Timer t;
|
||||
Common::Timer t;
|
||||
t.Start();
|
||||
|
||||
for (;;) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "common/timer.h"
|
||||
#include "core/hle/libraries/libkernel/time_management.h"
|
||||
#include "core/hle/libraries/libs.h"
|
||||
#include "Lib/Timer.h"
|
||||
#include "emuTimer.h"
|
||||
|
||||
namespace Core::Libraries::LibKernel {
|
||||
|
@ -18,7 +18,7 @@ u64 PS4_SYSV_ABI sceKernelGetProcessTimeCounterFrequency() {
|
|||
}
|
||||
|
||||
u64 PS4_SYSV_ABI sceKernelReadTsc() {
|
||||
return Lib::Timer::getQueryPerformanceCounter();
|
||||
return Common::Timer::getQueryPerformanceCounter();
|
||||
}
|
||||
|
||||
void timeSymbolsRegister(Loader::SymbolsResolver* sym) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue