Files
BlitzNext/Runtime/gfx/gxtimer.hpp
T

24 lines
400 B
C++
Raw Normal View History

#pragma once
#include <Windows.h>
2019-01-18 17:03:37 +01:00
#include <mmsyscom.h>
class gxRuntime;
class gxTimer {
public:
gxTimer(gxRuntime* rt, int hertz);
~gxTimer();
static void CALLBACK timerCallback(UINT id, UINT msg, DWORD user, DWORD dw1, DWORD dw2);
private:
gxRuntime* runtime;
HANDLE event;
MMRESULT timerID;
int ticks_put, ticks_get;
/***** GX INTERFACE *****/
public:
int wait();
};