diff options
author | Alejandro Marzini | 2010-06-13 21:09:52 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-06-13 21:09:52 +0000 |
commit | 77f114b835eaafcc334ad38c407faaa04cb62eb8 (patch) | |
tree | f002824921d8babc0c3ceab53fc44e5aa5cce286 /common | |
parent | a77738e53b8c52ebe8bf56fa753692832f851956 (diff) | |
download | scummvm-rg350-77f114b835eaafcc334ad38c407faaa04cb62eb8.tar.gz scummvm-rg350-77f114b835eaafcc334ad38c407faaa04cb62eb8.tar.bz2 scummvm-rg350-77f114b835eaafcc334ad38c407faaa04cb62eb8.zip |
Added SdlTimerManager. Added getMillis, delayMillis and getTimeAndDate to Common::TimerManager, DefaultTimerManager and ModularBackend. Removed timer code from OSystem_SDL.
svn-id: r49637
Diffstat (limited to 'common')
-rw-r--r-- | common/timer.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common/timer.h b/common/timer.h index c87c2b3240..057d6268c8 100644 --- a/common/timer.h +++ b/common/timer.h @@ -26,6 +26,7 @@ #define COMMON_TIMER_H #include "common/scummsys.h" +#include "common/system.h" #include "common/noncopyable.h" namespace Common { @@ -55,6 +56,21 @@ public: * and no instance of this callback will be running anymore. */ virtual void removeTimerProc(TimerProc proc) = 0; + + /** + * Get the number of milliseconds since the program was started. + */ + virtual uint32 getMillis() = 0; + + /** + * Delay for a specified amount of milliseconds + */ + virtual void delayMillis(uint msecs) = 0; + + /** + * Get the current time and date + */ + virtual void getTimeAndDate(TimeDate &t) const = 0; }; } // End of namespace Common |