mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
bee101b1f4
* Add clang-tidy readability-redundant-inline-specifier * fix * Update CONTRIBUTING.md * format * fix
38 lines
604 B
C++
38 lines
604 B
C++
#ifndef MXTIMER_H
|
|
#define MXTIMER_H
|
|
|
|
#include "mxcore.h"
|
|
|
|
// VTABLE: LEGO1 0x100dc0e0
|
|
// SIZE 0x10
|
|
class MxTimer : public MxCore {
|
|
public:
|
|
MxTimer();
|
|
|
|
void Start();
|
|
void Stop();
|
|
|
|
MxLong GetRealTime();
|
|
|
|
MxLong GetTime()
|
|
{
|
|
if (this->m_isRunning) {
|
|
return g_lastTimeTimerStarted;
|
|
}
|
|
else {
|
|
return g_lastTimeCalculated - this->m_startTime;
|
|
}
|
|
}
|
|
|
|
// SYNTHETIC: LEGO1 0x100ae0d0
|
|
// MxTimer::`scalar deleting destructor'
|
|
|
|
private:
|
|
MxLong m_startTime; // 0x08
|
|
MxBool m_isRunning; // 0x0c
|
|
|
|
static MxLong g_lastTimeCalculated;
|
|
static MxLong g_lastTimeTimerStarted;
|
|
};
|
|
|
|
#endif // MXTIMER_H
|