summaryrefslogtreecommitdiff
path: root/thirdparty/etcpak/Timing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/etcpak/Timing.cpp')
-rw-r--r--thirdparty/etcpak/Timing.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/thirdparty/etcpak/Timing.cpp b/thirdparty/etcpak/Timing.cpp
new file mode 100644
index 0000000000..2af851f9a9
--- /dev/null
+++ b/thirdparty/etcpak/Timing.cpp
@@ -0,0 +1,8 @@
+#include <chrono>
+
+#include "Timing.hpp"
+
+uint64_t GetTime()
+{
+ return std::chrono::time_point_cast<std::chrono::microseconds>( std::chrono::high_resolution_clock::now() ).time_since_epoch().count();
+}