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