shadPS4/src/emuTimer.cpp

24 lines
334 B
C++
Raw Normal View History

2023-11-06 00:17:28 +01:00
#include "common/timer.h"
2023-10-30 07:48:52 +01:00
namespace Emulator::emuTimer {
2023-11-06 00:17:28 +01:00
static Common::Timer timer;
2023-10-30 07:48:52 +01:00
2023-11-06 00:17:28 +01:00
void start() {
timer.Start();
}
2023-10-30 07:48:52 +01:00
2023-11-06 00:17:28 +01:00
double getTimeMsec() {
return timer.GetTimeMsec();
}
2023-11-06 00:17:28 +01:00
u64 getTimeCounter() {
return timer.GetTicks();
}
2023-11-06 00:17:28 +01:00
u64 getTimeFrequency() {
return timer.GetFrequency();
}
} // namespace Emulator::emuTimer