mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 18:27:26 +00:00
PEGASUS: Add a tickCount() function
This commit is contained in:
parent
cd01d5dc1d
commit
5f276bf4ac
@ -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
|
||||
|
@ -128,6 +128,8 @@ int32 linearInterp(const int32 start1, const int32 stop1, const int32 current1,
|
||||
|
||||
int32 pegasusRound(const int32 a, const int32 b);
|
||||
|
||||
uint32 tickCount();
|
||||
|
||||
} // End of namespace Pegasus
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user