AxibugEmuOnline/References/VirtuaNESex_src_191105/MMTimer.h
2024-08-05 17:58:53 +08:00

33 lines
544 B
C++

//
// Multimedia timer support
//
#ifndef __CMMTIMER_INCLUDED__
#define __CMMTIMER_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <mmsystem.h>
#include "typedef.h"
class CMMTimer
{
public:
CMMTimer();
~CMMTimer();
static SQWORD GetMMTimer();
static FLOAT CalcTimeDifference( SQWORD t0, SQWORD t1 );
protected:
private:
static BOOL m_bInitialize;
// 高分解能カウンタを利用出来るかどうかのフラグ
static BOOL m_bHigh;
// 高分解能カウンタ周波数
static SQWORD m_hpFrequency;
};
#endif // !__CMMTIMER_INCLUDED__