mirror of
https://github.com/libretro/Mesen.git
synced 2025-01-06 00:38:50 +00:00
16 lines
250 B
C++
16 lines
250 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include <chrono>
|
|
using namespace std::chrono;
|
|
|
|
class Timer
|
|
{
|
|
private:
|
|
high_resolution_clock::time_point _start;
|
|
|
|
public:
|
|
Timer();
|
|
void Reset();
|
|
double GetElapsedMS();
|
|
void WaitUntil(double targetMillisecond);
|
|
}; |