Replacing the tick count timer with xplat abstraction (also better rate).

Fixes #346.
This commit is contained in:
Ben Vanik
2015-07-19 10:11:54 -07:00
parent 9bcc4e046c
commit edfa3f3fc0
7 changed files with 69 additions and 20 deletions

View File

@@ -10,6 +10,9 @@
#ifndef XENIA_KERNEL_XBOXKRNL_MODULE_H_
#define XENIA_KERNEL_XBOXKRNL_MODULE_H_
#include <memory>
#include "xenia/base/threading.h"
#include "xenia/cpu/export_resolver.h"
#include "xenia/kernel/objects/xkernel_module.h"
#include "xenia/kernel/xboxkrnl_ordinals.h"
@@ -17,9 +20,6 @@
// All of the exported functions:
#include "xenia/kernel/xboxkrnl_rtl.h"
// TODO(benvanik): switch timer.
typedef void* HANDLE;
namespace xe {
namespace kernel {
@@ -35,7 +35,7 @@ class XboxkrnlModule : public XKernelModule {
int LaunchModule(const char* path);
private:
HANDLE timestamp_timer_;
std::unique_ptr<xe::threading::HighResolutionTimer> timestamp_timer_;
};
} // namespace kernel