Added function that returns the current time in milliseconds

This commit is contained in:
abdelrahman committed 2022-10-25 00:57:59 +01:00
1 parent cc052ed02c
commit 4659a4cd49
2 files changed
+4

No files matched your search

+2
View File
@@ -172,6 +172,8 @@ void close_engine() {
#endif /* DEBUG_ENGINE */
}
int64_t get_time() { return SDL_GetTicks64(); }
ObjectID add_object(void *object, EventHandlerPtr event_handler,
UpdateFuncPtr update_func, RenderFuncPtr render_func) {
if (!(GameEngine.running) || !(GameEngine.object_store)) {