summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2015-01-11 02:54:18 +0100
committerTycho <work.tycho+git@gmail.com>2015-01-11 02:54:18 +0100
commit4f75b94c99eeb1642a5ec46144542bfcd18af934 (patch)
tree886f5e75a134e2ae3b42691076f76fe8fb1b77e6 /src/Globals.h
parentCMake: Check libs in submodules before configuring. (diff)
downloadcuberite-4f75b94c99eeb1642a5ec46144542bfcd18af934.tar
cuberite-4f75b94c99eeb1642a5ec46144542bfcd18af934.tar.gz
cuberite-4f75b94c99eeb1642a5ec46144542bfcd18af934.tar.bz2
cuberite-4f75b94c99eeb1642a5ec46144542bfcd18af934.tar.lz
cuberite-4f75b94c99eeb1642a5ec46144542bfcd18af934.tar.xz
cuberite-4f75b94c99eeb1642a5ec46144542bfcd18af934.tar.zst
cuberite-4f75b94c99eeb1642a5ec46144542bfcd18af934.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h
index 61f500db9..b8e9ec7ed 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -419,6 +419,8 @@ std::unique_ptr<T> make_unique(Args&&... args)
return std::unique_ptr<T>(new T(args...));
}
+// a tick is 50 ms
+using cTickTime = std::chrono::duration<int, std::ratio_multiply<std::chrono::milliseconds::period, std::ratio<50>>>;
#ifndef TOLUA_TEMPLATE_BIND
#define TOLUA_TEMPLATE_BIND(x)
@@ -436,3 +438,4 @@ std::unique_ptr<T> make_unique(Args&&... args)
+