mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fix compilation on Linux
This commit is contained in:
parent
7f899bd412
commit
f34d4d2033
2 changed files with 8 additions and 1 deletions
|
@ -48,6 +48,7 @@ public:
|
||||||
cycle_t &operator= (const cycle_t &o) { return *this; }
|
cycle_t &operator= (const cycle_t &o) { return *this; }
|
||||||
void Reset() {}
|
void Reset() {}
|
||||||
void Clock() {}
|
void Clock() {}
|
||||||
|
void ResetAndClock() {}
|
||||||
void Unclock() {}
|
void Unclock() {}
|
||||||
double Time() { return 0; }
|
double Time() { return 0; }
|
||||||
double TimeMS() { return 0; }
|
double TimeMS() { return 0; }
|
||||||
|
@ -120,6 +121,12 @@ public:
|
||||||
Sec -= ts.tv_sec + ts.tv_nsec * 1e-9;
|
Sec -= ts.tv_sec + ts.tv_nsec * 1e-9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ResetAndClock()
|
||||||
|
{
|
||||||
|
Reset();
|
||||||
|
Clock();
|
||||||
|
}
|
||||||
|
|
||||||
void Unclock()
|
void Unclock()
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
|
@ -780,7 +780,7 @@ ADD_STAT(gc)
|
||||||
|
|
||||||
void FStepStats::Reset()
|
void FStepStats::Reset()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < countof(Count); ++i)
|
for (unsigned i = 0; i < countof(Count); ++i)
|
||||||
{
|
{
|
||||||
Count[i] = 0;
|
Count[i] = 0;
|
||||||
BytesCovered[i] = 0;
|
BytesCovered[i] = 0;
|
||||||
|
|
Loading…
Reference in a new issue