raze-gles/source/build/include/timer.h
Christoph Oelckers 2316957026 - made things compile again after updating enet. Also removed the redundant dumb and game_music_emu libraries which just got imported by accident when using other things from GZDoom.
Note: enet uses 'malloc' and 'free' as field names in a struct - this does not work with any compiler using some sort of heap instrumentation that #defines these names!
This had to be changed to allow MSVC debug builds to compile again.
2019-10-20 09:16:01 +02:00

26 lines
548 B
C

#pragma once
#ifndef timer_h__
#define timer_h__
#include "compat.h"
// for compatibility
#define timerUninit()
int timerInit(int const tickspersecond);
void timerUpdateClock(void);
int timerGetClockRate(void);
uint64_t timerGetTicksU64(void);
uint64_t timerGetFreqU64(void);
double timerGetHiTicks(void);
uint32_t timerGetTicks(void);
void (*timerSetCallback(void (*callback)(void)))(void);
inline void timerUpdate() // to avoid merge conflicts when the other games get updated.
{
timerUpdateClock();
}
#endif // timer_h__