mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-27 11:00:50 +00:00
37c3201057
Improved performance (less memory copying, less spin waiting, etc.) - uses less CPU at normal speed, and faster when no FPS limit
15 lines
212 B
C++
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);
|
|
}; |