- [NEW] game::getTicks()

This commit is contained in:
2023-10-18 19:00:08 +02:00
parent 8cb28f000d
commit 6b8a5213e6
2 changed files with 8 additions and 0 deletions

View File

@@ -29,6 +29,12 @@ namespace game
{ {
return config[key]; return config[key];
} }
const uint32_t getTicks()
{
return SDL_GetTicks();
}
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])

View File

@@ -15,4 +15,6 @@ namespace game
void setConfig(const char* key, const int value); void setConfig(const char* key, const int value);
const int getConfig(const char* key); const int getConfig(const char* key);
const uint32_t getTicks();
} }