diff options
Diffstat (limited to '')
-rw-r--r-- | src/Globals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h index 61f500db9..f0726454b 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -419,6 +419,9 @@ 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>>>; +using cTickTimeLong = std::chrono::duration<Int64, cTickTime::period>; #ifndef TOLUA_TEMPLATE_BIND #define TOLUA_TEMPLATE_BIND(x) @@ -436,3 +439,4 @@ std::unique_ptr<T> make_unique(Args&&... args) + |