mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Reorganize sources and files (#414)
* Reorganize sources * Refactor * Remove relative paths * Renames * Fix gitignore * Remove stuff * Try fixing format script * Fix format * Fix format * Fix naming script * Test format * Fix format
This commit is contained in:

committed by
GitHub

parent
6a85e62406
commit
c47206617d
32
LEGO1/omni/include/mxtimer.h
Normal file
32
LEGO1/omni/include/mxtimer.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef MXTIMER_H
|
||||
#define MXTIMER_H
|
||||
|
||||
#include "mxcore.h"
|
||||
|
||||
// VTABLE: LEGO1 0x100dc0e0
|
||||
// SIZE 0x10
|
||||
class MxTimer : public MxCore {
|
||||
public:
|
||||
MxTimer();
|
||||
|
||||
void Start();
|
||||
void Stop();
|
||||
|
||||
__declspec(dllexport) MxLong GetRealTime();
|
||||
|
||||
inline MxLong GetTime()
|
||||
{
|
||||
if (this->m_isRunning)
|
||||
return g_lastTimeTimerStarted;
|
||||
else
|
||||
return g_lastTimeCalculated - this->m_startTime;
|
||||
}
|
||||
|
||||
private:
|
||||
MxLong m_startTime;
|
||||
MxBool m_isRunning;
|
||||
static MxLong g_lastTimeCalculated;
|
||||
static MxLong g_lastTimeTimerStarted;
|
||||
};
|
||||
|
||||
#endif // MXTIMER_H
|
Reference in New Issue
Block a user