aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/PerformanceTimer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/PerformanceTimer.h')
-rw-r--r--Minecraft.World/PerformanceTimer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Minecraft.World/PerformanceTimer.h b/Minecraft.World/PerformanceTimer.h
new file mode 100644
index 00000000..04a36949
--- /dev/null
+++ b/Minecraft.World/PerformanceTimer.h
@@ -0,0 +1,13 @@
+#pragma once
+
+class PerformanceTimer
+{
+private:
+ LARGE_INTEGER m_qwStartTime;
+ float m_fSecsPerTick;
+
+public:
+ PerformanceTimer();
+ void Reset();
+ void PrintElapsedTime(const wstring &description);
+}; \ No newline at end of file