Timer.pkg 562 B

12345678910111213141516171819202122232425
  1. $#include "Timer.h"
  2. class Timer
  3. {
  4. public:
  5. unsigned GetMSec(bool reset);
  6. void Reset();
  7. };
  8. class Time : public Object
  9. {
  10. public:
  11. // Methods:
  12. unsigned GetFrameNumber() const;
  13. float GetTimeStep() const;
  14. float GetElapsedTime();
  15. static unsigned GetSystemTime();
  16. static String GetTimeStamp();
  17. // Properties:
  18. tolua_readonly tolua_property__get_set unsigned frameNumber;
  19. tolua_readonly tolua_property__get_set float timeStep;
  20. tolua_readonly tolua_property__get_set float elapsedTime;
  21. };