mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user