summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-29 01:24:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-29 01:24:49 +0300
commitca130a19b36a78c6a23aa56c6ea82eaa187b0a06 (patch)
treea22f311c5698f3f4ee370c0f1d3cb05230a1da95 /src/utils
parenteeffaaf3ab0593f815e772bfb523b9e7a94d45f5 (diff)
downloadplus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.gz
plus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.bz2
plus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.xz
plus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.zip
Use time_t for time values.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/timer.cpp2
-rw-r--r--src/utils/timer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp
index fdb4a0c5a..dff2816a8 100644
--- a/src/utils/timer.cpp
+++ b/src/utils/timer.cpp
@@ -50,7 +50,7 @@ volatile int fps = 0; /**< Frames counted in the last second */
volatile int lps = 0; /**< Logic processed per second */
volatile int frame_count = 0; /**< Counts the frames during one second */
volatile int logic_count = 0; /**< Counts the logic during one second */
-volatile int cur_time;
+volatile time_t cur_time = 0;
static uint32_t nextTick(uint32_t interval, void *param A_UNUSED);
static uint32_t nextSecond(uint32_t interval, void *param A_UNUSED);
diff --git a/src/utils/timer.h b/src/utils/timer.h
index 2e58fe508..5518622cc 100644
--- a/src/utils/timer.h
+++ b/src/utils/timer.h
@@ -26,7 +26,7 @@
extern volatile int fps;
extern volatile int lps;
extern volatile int tick_time;
-extern volatile int cur_time;
+extern volatile time_t cur_time;
extern volatile int frame_count;
extern volatile int logic_count;