Timer.pkg 576 B

12345678910111213141516171819
  1. $#include "Timer.h"
  2. class Time : public Object
  3. {
  4. unsigned GetFrameNumber() const;
  5. float GetTimeStep() const;
  6. unsigned GetTimerPeriod() const;
  7. float GetElapsedTime();
  8. static unsigned GetSystemTime();
  9. static String GetTimeStamp();
  10. static void Sleep(unsigned mSec);
  11. tolua_readonly tolua_property__get_set unsigned frameNumber;
  12. tolua_readonly tolua_property__get_set float timeStep;
  13. tolua_readonly tolua_property__get_set unsigned timerPeriod;
  14. tolua_readonly tolua_property__get_set float elapsedTime;
  15. };