raze-gles/source/build/include/timer.h
Christoph Oelckers 435e13dfa4 cleanup of the timer interface.
* rewrote all uses of timerSetCallback. Most were unnecessary or long obsolete, the sound updates need to run per frame, not per tic and the UI tickers need to be handled in the main loop anyway.
* Use a more precise timer to animate the menu transition.
* uncouple other menu animations from the game timer.
2020-08-25 19:42:11 +02:00

19 lines
377 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);
#endif // timer_h__