REDRIVER2/src_rebuild/PsyX/EMULATOR_TIMER.H
Ilya Shurumov 0bc848da2c - rename EMULATOR to Psy-X
- move it's makefile
2020-11-19 01:14:45 +06:00

24 lines
423 B
C

#ifndef EMULATOR_TIMER_H
#define EMULATOR_TIMER_H
#ifdef _WIN32
#include <profileapi.h>
#else
#include <sys/time.h>
#endif
struct timerCtx_t
{
#ifdef _WIN32
LARGE_INTEGER performanceFrequency;
LARGE_INTEGER clockStart;
#else
timeval timeStart;
#endif // _WIN32
};
extern void Emulator_InitHPCTimer(timerCtx_t* timer);
extern double Emulator_GetHPCTime(timerCtx_t* timer, int reset = 0);
#endif // EMULATOR_TIMER_H