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

33 lines
1.1 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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__