18 lines
259 B
C
18 lines
259 B
C
|
#pragma once
|
||
|
#include "stdafx.h"
|
||
|
|
||
|
class Timer
|
||
|
{
|
||
|
private:
|
||
|
#ifndef LIBRETRO
|
||
|
#ifdef WIN32
|
||
|
double _frequency = 0.0;
|
||
|
#endif
|
||
|
uint64_t _start;
|
||
|
#endif
|
||
|
public:
|
||
|
Timer();
|
||
|
void Reset();
|
||
|
double GetElapsedMS();
|
||
|
void WaitUntil(double targetMillisecond);
|
||
|
};
|