18 lines
No EOL
260 B
C++
18 lines
No EOL
260 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);
|
|
}; |