diff --git a/source/jgame.cpp b/source/jgame.cpp index 437f1c2..816805f 100644 --- a/source/jgame.cpp +++ b/source/jgame.cpp @@ -29,6 +29,12 @@ namespace game { return config[key]; } + + const uint32_t getTicks() + { + return SDL_GetTicks(); + } + } int main(int argc, char *argv[]) diff --git a/source/jgame.h b/source/jgame.h index 2420c86..7b09e2a 100644 --- a/source/jgame.h +++ b/source/jgame.h @@ -15,4 +15,6 @@ namespace game void setConfig(const char* key, const int value); const int getConfig(const char* key); + + const uint32_t getTicks(); }