diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-12 17:09:16 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-12 17:09:16 +0200 |
commit | 45de7d0537d2caec7d0a7ede48e2b72301bc9da9 (patch) | |
tree | af17dd093da09dc77a3a07a3d4835a1b5e5b85f6 /src/Utility.hpp | |
parent | 2017-08-07 (diff) | |
download | AltCraft-45de7d0537d2caec7d0a7ede48e2b72301bc9da9.tar AltCraft-45de7d0537d2caec7d0a7ede48e2b72301bc9da9.tar.gz AltCraft-45de7d0537d2caec7d0a7ede48e2b72301bc9da9.tar.bz2 AltCraft-45de7d0537d2caec7d0a7ede48e2b72301bc9da9.tar.lz AltCraft-45de7d0537d2caec7d0a7ede48e2b72301bc9da9.tar.xz AltCraft-45de7d0537d2caec7d0a7ede48e2b72301bc9da9.tar.zst AltCraft-45de7d0537d2caec7d0a7ede48e2b72301bc9da9.zip |
Diffstat (limited to 'src/Utility.hpp')
-rw-r--r-- | src/Utility.hpp | 8 |
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(); }; |