Timer.pkg 1000 B

1234567891011121314151617181920212223242526272829303132333435
  1. $#include "Core/Timer.h"
  2. class Time : public Object
  3. {
  4. unsigned GetFrameNumber() const;
  5. float GetTimeStep() const;
  6. unsigned GetTimerPeriod() const;
  7. float GetElapsedTime();
  8. float GetFramesPerSecond() const;
  9. static unsigned GetSystemTime();
  10. static unsigned GetTimeSinceEpoch();
  11. static String GetTimeStamp();
  12. static void Sleep(unsigned mSec);
  13. tolua_readonly tolua_property__get_set unsigned frameNumber;
  14. tolua_readonly tolua_property__get_set float timeStep;
  15. tolua_readonly tolua_property__get_set unsigned timerPeriod;
  16. tolua_readonly tolua_property__get_set float elapsedTime;
  17. };
  18. Time* GetTime();
  19. tolua_readonly tolua_property__get_set Time* time;
  20. ${
  21. #define TOLUA_DISABLE_tolua_CoreLuaAPI_GetTime00
  22. static int tolua_CoreLuaAPI_GetTime00(lua_State* tolua_S)
  23. {
  24. return ToluaGetSubsystem<Time>(tolua_S);
  25. }
  26. #define TOLUA_DISABLE_tolua_get_time_ptr
  27. #define tolua_get_time_ptr tolua_CoreLuaAPI_GetTime00
  28. $}