|
Engine²
Open-source game engine written in C++.
|
Resource that stores the elapsed time since the last frame. More...
#include <Time.hpp>
Static Public Member Functions | |
| static void | Update (Core &core) |
| Update the _elapsedTime since the last frame. It should be called at the beginning of each frame to update the elapsed time. This is a system. | |
Public Attributes | |
| float | _elapsedTime = 0.0f |
| Elapsed time since the last frame in seconds. | |
| std::chrono::time_point< std::chrono::high_resolution_clock > | _lastTime = std::chrono::high_resolution_clock::now() |
| The time point of the last frame. It is used to calculate the elapsed time since the last frame. | |
Resource that stores the elapsed time since the last frame.
|
inlinestatic |
Update the _elapsedTime since the last frame. It should be called at the beginning of each frame to update the elapsed time. This is a system.
| core | Reference to the core. |
| float Engine::Resource::Time::_elapsedTime = 0.0f |
Elapsed time since the last frame in seconds.
| std::chrono::time_point<std::chrono::high_resolution_clock> Engine::Resource::Time::_lastTime = std::chrono::high_resolution_clock::now() |
The time point of the last frame. It is used to calculate the elapsed time since the last frame.