mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
(Proposal) Introduction of naming convention checker (ncc
) (#322)
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
This commit is contained in:

committed by
GitHub

parent
3b155bfe38
commit
bc5ca621a4
@@ -17,16 +17,16 @@ public:
|
||||
inline MxLong GetTime()
|
||||
{
|
||||
if (this->m_isRunning)
|
||||
return s_LastTimeTimerStarted;
|
||||
return g_lastTimeTimerStarted;
|
||||
else
|
||||
return s_LastTimeCalculated - this->m_startTime;
|
||||
return g_lastTimeCalculated - this->m_startTime;
|
||||
}
|
||||
|
||||
private:
|
||||
MxLong m_startTime;
|
||||
MxBool m_isRunning;
|
||||
static MxLong s_LastTimeCalculated;
|
||||
static MxLong s_LastTimeTimerStarted;
|
||||
static MxLong g_lastTimeCalculated;
|
||||
static MxLong g_lastTimeTimerStarted;
|
||||
};
|
||||
|
||||
#endif // MXTIMER_H
|
||||
|
Reference in New Issue
Block a user