Mesen-X/Utilities/Timer.h

16 lines
250 B
C
Raw Normal View History

2015-07-21 18:18:20 -04:00
#pragma once
2014-06-10 16:58:37 -04:00
#include "stdafx.h"
#include <chrono>
using namespace std::chrono;
2014-06-10 16:58:37 -04:00
class Timer
{
private:
high_resolution_clock::time_point _start;
public:
Timer();
void Reset();
double GetElapsedMS();
void WaitUntil(double targetMillisecond);
2014-06-10 16:58:37 -04:00
};