Mesen-SX/Utilities/Timer.h

16 lines
256 B
C
Raw Normal View History

2019-02-13 14:10:36 -05:00
#pragma once
#include "stdafx.h"
#include <chrono>
using namespace std::chrono;
2019-02-13 14:10:36 -05:00
class Timer
{
private:
high_resolution_clock::time_point _start;
public:
Timer();
void Reset();
double GetElapsedMS();
void WaitUntil(double targetMillisecond);
};