raze-gles/source/build/include/timer.h
terminx c72a69ff6f This timing stuff actually works
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
2019-09-20 16:12:16 +02:00

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__