diff options
Diffstat (limited to 'backends/platform/sdl/sdl.cpp')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 6b785f2409..4394b6c253 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -34,6 +34,8 @@ #include "icons/scummvm.xpm" +#include <time.h> // for getTimeAndDate() + //#define SAMPLES_PER_SEC 11025 #define SAMPLES_PER_SEC 22050 //#define SAMPLES_PER_SEC 44100 @@ -216,6 +218,11 @@ void OSystem_SDL::delayMillis(uint msecs) { SDL_Delay(msecs); } +void OSystem_SDL::getTimeAndDate(struct tm &t) const { + time_t curTime = time(0); + t = *localtime(&curTime); +} + Common::TimerManager *OSystem_SDL::getTimerManager() { assert(_timer); return _timer; |