Define MxLong/MxULong (#71)

* define MxLong/MxULong

The "long" type has different sizes on different platforms, and this may cause issues.

* use DWORD to match RegQueryValueExA arg
This commit is contained in:
MattKC
2023-07-02 01:05:49 -07:00
committed by GitHub
parent 0555e05756
commit e16249b672
85 changed files with 180 additions and 159 deletions

View File

@@ -13,9 +13,9 @@ public:
void Start();
void Stop();
__declspec(dllexport) long GetRealTime();
__declspec(dllexport) MxLong GetRealTime();
inline long GetTime()
inline MxLong GetTime()
{
if (this->m_isRunning)
return s_LastTimeCalculated;
@@ -24,10 +24,10 @@ public:
}
private:
long m_startTime;
MxLong m_startTime;
MxBool m_isRunning;
static long s_LastTimeCalculated;
static long s_LastTimeTimerStarted;
static MxLong s_LastTimeCalculated;
static MxLong s_LastTimeTimerStarted;
};
#endif // MXTIMER_H