mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-14 04:48:42 +00:00
17 lines
236 B
C++
17 lines
236 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
|
|
class Timer
|
|
{
|
|
private:
|
|
#ifdef WIN32
|
|
double _frequency = 0.0;
|
|
#endif
|
|
uint64_t _start;
|
|
|
|
public:
|
|
Timer();
|
|
void Reset();
|
|
double GetElapsedMS();
|
|
void WaitUntil(double targetMillisecond);
|
|
}; |