mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
c72a69ff6f
It doesn't help when it turns out the compiler is broken and implementing std::chrono::high_resolution_clock as something that only counts in ms instead of properly aliasing it to std::chrono::steady_clock! git-svn-id: https://svn.eduke32.com/eduke32@8002 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/src/sdlayer.cpp
21 lines
424 B
C
21 lines
424 B
C
#pragma once
|
|
|
|
#ifndef timer_h__
|
|
#define timer_h__
|
|
|
|
#include "compat.h"
|
|
|
|
// for compatibility
|
|
#define timerUninit()
|
|
|
|
int timerInit(int const tickspersecond);
|
|
void timerUpdate(void);
|
|
int timerGetRate(void);
|
|
uint64_t timerGetTicksU64(void);
|
|
uint64_t timerGetFreqU64(void);
|
|
double timerGetHiTicks(void);
|
|
uint32_t timerGetTicks(void);
|
|
|
|
void (*timerSetCallback(void (*callback)(void)))(void);
|
|
|
|
#endif // timer_h__
|