Replaced timespec with SDL_GetTicks