StrikeBox/modules/core/include/strikebox/timer.h
Ivan Roberto de Oliveira 55adab93f7 Name change (again)
2019-02-28 11:45:09 -03:00

26 lines
382 B
C++

#pragma once
#include <stdint.h>
#include <chrono>
using namespace std::chrono;
namespace strikebox {
/*!
* 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();
};
}