First commit

This commit is contained in:
nastys
2019-07-06 22:51:56 +02:00
commit 321ecdf8b7
162 changed files with 19606 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include <chrono>
namespace chrono = std::chrono;
typedef chrono::time_point<chrono::steady_clock> steady_clock;
typedef chrono::high_resolution_clock high_resolution_clock;
namespace TLAC::Utilities
{
class Stopwatch
{
const float TIME_FACTOR = 1000.0f;
public:
Stopwatch();
~Stopwatch();
void Start();
float Stop();
float Restart();
float GetElapsed();
private:
steady_clock start;
steady_clock end;
};
}