12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef VOXEL_TIME_H
- #define VOXEL_TIME_H
- #include "Common.h"
- namespace Voxel
- {
-
-
- class VOXEL_EXPORT Timer
- {
- TimeStampType _realTimeStart = 0, _monoticStart = 0;
-
- bool _initialized = false;
-
- public:
- Timer()
- {
- init();
- }
-
- inline bool isInitialized() { return _initialized; }
-
- bool init();
-
-
- TimeStampType convertToRealTime(TimeStampType l);
-
- TimeStampType getCurrentRealTime();
- };
- }
- #endif
|