This Class handles our engine time step during frames. Global Unique. More...
#include <TimeStep.h>
Public Member Functions | |
| TimeStep () | |
| Constructor Function. | |
| virtual | ~TimeStep ()=default |
| Destructor Function. | |
| TimeStep (const TimeStep &)=delete | |
| Copy Constructor Function. | |
| TimeStep & | operator= (const TimeStep &)=delete |
| Copy Assignment Operation. | |
| const float & | ft () const |
| Get time step during frames. | |
| const float & | gt () const |
| Get time step since Engine Start. | |
| const uint64_t & | fs () const |
| Get frames count. | |
| void | Flush () |
| Refresh time in each engine loop. | |
Public Attributes | |
| std::chrono::steady_clock::time_point | m_StartTime |
| Engine Start time. | |
| std::chrono::steady_clock::time_point | m_LastTime |
| Last frame time. | |
| float | m_FrameTime |
| time step(s) during frames. | |
| float | m_GameTime |
| time step(s) since Engine Start. | |
| uint64_t | m_Frames |
| Frames since Engine Start. | |
This Class handles our engine time step during frames. Global Unique.
Definition at line 21 of file TimeStep.h.