StrikeBox/modules/core/include/vixen/timer.h
StrikerX3 3ef26120ee Replace CPU modules with virt86
Restructure CMake projects
2019-02-20 23:38:36 -03:00

26 lines
378 B
C++

#pragma once
#include <stdint.h>
#include <chrono>
using namespace std::chrono;
namespace vixen {
/*!
* Simple timer abstraction class for high-precision timing events
*/
class Timer {
protected:
high_resolution_clock::time_point m_start;
high_resolution_clock::time_point m_end;
public:
Timer();
void Start();
void Stop();
uint64_t GetMillisecondsElapsed();
};
}