Mesen-X/Utilities/Timer.h

18 lines
259 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"
class Timer
{
private:
2018-01-05 15:37:49 -05:00
#ifndef LIBRETRO
2016-12-17 23:14:47 -05:00
#ifdef WIN32
2014-06-10 16:58:37 -04:00
double _frequency = 0.0;
2016-12-17 23:14:47 -05:00
#endif
uint64_t _start;
2018-01-05 15:37:49 -05:00
#endif
2014-06-10 16:58:37 -04:00
public:
Timer();
void Reset();
double GetElapsedMS();
void WaitUntil(double targetMillisecond);
2014-06-10 16:58:37 -04:00
};