mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Introduce clang-format (#240)
This commit is contained in:
committed by
GitHub
parent
e928fc9425
commit
b449da1fa3
@@ -5,29 +5,28 @@
|
||||
|
||||
// VTABLE 0x100dc0e0
|
||||
// SIZE 0x10
|
||||
class MxTimer : public MxCore
|
||||
{
|
||||
class MxTimer : public MxCore {
|
||||
public:
|
||||
MxTimer();
|
||||
MxTimer();
|
||||
|
||||
void Start();
|
||||
void Stop();
|
||||
void Start();
|
||||
void Stop();
|
||||
|
||||
__declspec(dllexport) MxLong GetRealTime();
|
||||
__declspec(dllexport) MxLong GetRealTime();
|
||||
|
||||
inline MxLong GetTime()
|
||||
{
|
||||
if (this->m_isRunning)
|
||||
return s_LastTimeTimerStarted;
|
||||
else
|
||||
return s_LastTimeCalculated - this->m_startTime;
|
||||
}
|
||||
inline MxLong GetTime()
|
||||
{
|
||||
if (this->m_isRunning)
|
||||
return s_LastTimeTimerStarted;
|
||||
else
|
||||
return s_LastTimeCalculated - this->m_startTime;
|
||||
}
|
||||
|
||||
private:
|
||||
MxLong m_startTime;
|
||||
MxBool m_isRunning;
|
||||
static MxLong s_LastTimeCalculated;
|
||||
static MxLong s_LastTimeTimerStarted;
|
||||
MxLong m_startTime;
|
||||
MxBool m_isRunning;
|
||||
static MxLong s_LastTimeCalculated;
|
||||
static MxLong s_LastTimeTimerStarted;
|
||||
};
|
||||
|
||||
#endif // MXTIMER_H
|
||||
|
||||
Reference in New Issue
Block a user