- [NEW] game::getTicks()
This commit is contained in:
@@ -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[])
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user