summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/Timer.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-30 10:06:41 +0200
committermadmaxoft <github@xoft.cz>2013-08-30 10:06:41 +0200
commit86eb71868bc1c809d69a628c8e0fe51318453695 (patch)
tree4a2265d11964e75f3c03c544bd029b29af7f10f4 /source/OSSupport/Timer.h
parentAdded g_BlockIsXXX[] arrays to the API. (diff)
downloadcuberite-86eb71868bc1c809d69a628c8e0fe51318453695.tar
cuberite-86eb71868bc1c809d69a628c8e0fe51318453695.tar.gz
cuberite-86eb71868bc1c809d69a628c8e0fe51318453695.tar.bz2
cuberite-86eb71868bc1c809d69a628c8e0fe51318453695.tar.lz
cuberite-86eb71868bc1c809d69a628c8e0fe51318453695.tar.xz
cuberite-86eb71868bc1c809d69a628c8e0fe51318453695.tar.zst
cuberite-86eb71868bc1c809d69a628c8e0fe51318453695.zip
Diffstat (limited to 'source/OSSupport/Timer.h')
-rw-r--r--source/OSSupport/Timer.h31
1 files changed, 24 insertions, 7 deletions
diff --git a/source/OSSupport/Timer.h b/source/OSSupport/Timer.h
index 5969d0fc9..a059daa41 100644
--- a/source/OSSupport/Timer.h
+++ b/source/OSSupport/Timer.h
@@ -1,15 +1,32 @@
+
+// Timer.h
+
+// Declares the cTimer class representing an OS-independent of retrieving current time with msec accuracy
+
+
+
+
+
#pragma once
+
+
+
+
class cTimer
{
public:
- cTimer();
- ~cTimer();
+ cTimer(void);
- long long GetNowTime();
+ // Returns the current time expressed in milliseconds
+ long long GetNowTime(void);
private:
-#ifdef _WIN32
- void* m_TicksPerSecond; // LARGE_INTEGER*
-#endif
-}; \ No newline at end of file
+ #ifdef _WIN32
+ LARGE_INTEGER m_TicksPerSecond;
+ #endif
+} ;
+
+
+
+