aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/util.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-12-13 11:33:11 -0500
committerMatthew Hoops2011-12-13 11:33:11 -0500
commit5f276bf4ac140d05511963a255fb329274d3ba85 (patch)
treeed1ccd6633390a494f5d23e94c9e832a7892587b /engines/pegasus/util.cpp
parentcd01d5dc1de3bdab4a0f784880a7dde1d0e7ef9a (diff)
downloadscummvm-rg350-5f276bf4ac140d05511963a255fb329274d3ba85.tar.gz
scummvm-rg350-5f276bf4ac140d05511963a255fb329274d3ba85.tar.bz2
scummvm-rg350-5f276bf4ac140d05511963a255fb329274d3ba85.zip
PEGASUS: Add a tickCount() function
Diffstat (limited to 'engines/pegasus/util.cpp')
-rwxr-xr-xengines/pegasus/util.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/pegasus/util.cpp b/engines/pegasus/util.cpp
index 9f4ad57bdd..f0d80f5827 100755
--- a/engines/pegasus/util.cpp
+++ b/engines/pegasus/util.cpp
@@ -24,6 +24,7 @@
*/
#include "common/random.h"
+#include "common/system.h"
#include "common/util.h"
#include "pegasus/util.h"
@@ -87,4 +88,8 @@ int32 linearInterp(const int32 start1, const int32 stop1, const int32 current1,
return start2 + pegasusRound((current1 - start1) * (stop2 - start2), (stop1 - start1));
}
+uint32 tickCount() {
+ return g_system->getMillis() * 60 / 1000;
+}
+
} // End of namespace Pegasus