aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Time/je_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Time/je_timer.h')
-rw-r--r--src/libjin/Time/je_timer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libjin/Time/je_timer.h b/src/libjin/Time/je_timer.h
index 82b4b52..b6b4b9e 100644
--- a/src/libjin/Time/je_timer.h
+++ b/src/libjin/Time/je_timer.h
@@ -1,7 +1,7 @@
#ifndef __JE_TIMER_H
#define __JE_TIMER_H
#include "../core/je_configuration.h"
-#if LIBJIN_MODULES_TIME
+#if defined(jin_time)
#include <vector>
#include "SDL2/SDL.h"
@@ -84,7 +84,7 @@ namespace JinEngine
///
inline void sleep(int ms)
{
- #if LIBJIN_TIME_SDL
+ #if jin_time == jin_time_sdl
SDL_Delay(ms);
#endif
}
@@ -94,7 +94,7 @@ namespace JinEngine
///
inline double getSecond()
{
- #if LIBJIN_TIME_SDL
+ #if jin_time == jin_time_sdl
return SDL_GetTicks() / 1000.f;
#endif
}
@@ -104,7 +104,7 @@ namespace JinEngine
///
inline double getMilliSecond()
{
- #if LIBJIN_TIME_SDL
+ #if jin_time == jin_time_sdl
return SDL_GetTicks();
#endif
}
@@ -112,6 +112,6 @@ namespace JinEngine
} // namespace Time
} // namespace JinEngine
-#endif // LIBJIN_MODULES_TIME
+#endif // defined(jin_time)
#endif // __JE_TIMER_H \ No newline at end of file