summaryrefslogtreecommitdiffstats
path: root/src/Utility.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Utility.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Utility.hpp b/src/Utility.hpp
index 0ae3540..c7ec358 100644
--- a/src/Utility.hpp
+++ b/src/Utility.hpp
@@ -7,6 +7,10 @@
#include <easylogging++.h>
#include <GL/glew.h>
+//using Uuid = std::array<unsigned char, 16>;
+//using Uuid = unsigned char[16];
+using Uuid = std::vector<uint8_t>;
+
template<class T>
void endswap(T *objp) {
unsigned char *memp = reinterpret_cast<unsigned char *>(objp);
@@ -27,12 +31,12 @@ GLenum glCheckError_(const char *file, int line);
#define glCheckError() glCheckError_(__FILE__, __LINE__)
-
class LoopExecutionTimeController {
using clock = std::chrono::steady_clock ;
using timePoint = std::chrono::time_point<clock>;
using duration = std::chrono::duration<double,std::milli>;
timePoint previousUpdate;
+ timePoint previousPreviousUpdate;
duration delayLength;
unsigned long long iterations=0;
public:
@@ -51,4 +55,6 @@ public:
duration GetDelta();
double GetDeltaS();
+
+ double GetRealDeltaS();
};