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-10-30 11:53:52 +01:00
|
|
|
|
2023-11-06 00:17:28 +01:00
|
|
|
u64 getTimeCounter() {
|
|
|
|
return timer.GetTicks();
|
|
|
|
}
|
2023-10-30 11:53:52 +01:00
|
|
|
|
2023-11-06 00:17:28 +01:00
|
|
|
u64 getTimeFrequency() {
|
|
|
|
return timer.GetFrequency();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Emulator::emuTimer
|