Mesen/Utilities/Timer.h
Souryo 37c3201057 Frame decoding/Rendering is now handled by separate threads (i.e there are now 3 threads in the emu + UI thread)
Improved performance (less memory copying, less spin waiting, etc.) - uses less CPU at normal speed, and faster when no FPS limit
2015-08-30 21:04:21 -04:00

15 lines
212 B
C++

#pragma once
#include "stdafx.h"
class Timer
{
private:
double _frequency = 0.0;
uint64_t _start;
public:
Timer();
void Reset();
double GetElapsedMS();
void WaitUntil(double targetMillisecond);
};