![]() |
Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
|
Manages current, total, and elapsed time for the application. More...
#include <app_time.hpp>
Public Member Functions | |
| AppTime () | |
| Constructs a new AppTime instance with zeroed timers. | |
| const std::chrono::high_resolution_clock::time_point & | CurrentTime () const |
| Returns the current high-resolution time point. | |
| void | SetCurrentTime (const std::chrono::high_resolution_clock::time_point ¤tTime) |
| Sets the current high-resolution time point. | |
| const std::chrono::milliseconds & | TotalAppTime () const |
| Returns total accumulated application time since start. | |
| const float | TotalAppTimeMilliseconds () const |
| Returns total accumulated time in milliseconds (float). | |
| void | SetTotalAppTime (const std::chrono::milliseconds &totalAppTime) |
| Sets total accumulated application time. | |
| const float | ElapsedAppTimeMilliseconds () const |
| Returns elapsed time since the last frame in milliseconds (float). | |
| const std::chrono::milliseconds & | ElapsedAppTime () const |
| Returns elapsed time since the last frame. | |
| void | SetElapsedAppTime (const std::chrono::milliseconds &elapsedAppTime) |
| Sets elapsed time since the last frame. | |
Manages current, total, and elapsed time for the application.
Stores high-resolution timestamps and durations for frame updates. Provides both millisecond and chrono-based accessors.
Definition at line 35 of file app_time.hpp.
| rendering_engine::AppTime::AppTime | ( | ) |
Constructs a new AppTime instance with zeroed timers.
Definition at line 6 of file app_time.cpp.
| const std::chrono::high_resolution_clock::time_point & rendering_engine::AppTime::CurrentTime | ( | ) | const |
Returns the current high-resolution time point.
Definition at line 13 of file app_time.cpp.
| const std::chrono::milliseconds & rendering_engine::AppTime::ElapsedAppTime | ( | ) | const |
Returns elapsed time since the last frame.
Definition at line 43 of file app_time.cpp.
| const float rendering_engine::AppTime::ElapsedAppTimeMilliseconds | ( | ) | const |
Returns elapsed time since the last frame in milliseconds (float).
Definition at line 38 of file app_time.cpp.
| void rendering_engine::AppTime::SetCurrentTime | ( | const std::chrono::high_resolution_clock::time_point & | currentTime | ) |
Sets the current high-resolution time point.
Definition at line 18 of file app_time.cpp.
| void rendering_engine::AppTime::SetElapsedAppTime | ( | const std::chrono::milliseconds & | elapsedAppTime | ) |
Sets elapsed time since the last frame.
Definition at line 48 of file app_time.cpp.
| void rendering_engine::AppTime::SetTotalAppTime | ( | const std::chrono::milliseconds & | totalAppTime | ) |
Sets total accumulated application time.
Definition at line 33 of file app_time.cpp.
| const std::chrono::milliseconds & rendering_engine::AppTime::TotalAppTime | ( | ) | const |
Returns total accumulated application time since start.
Definition at line 23 of file app_time.cpp.
| const float rendering_engine::AppTime::TotalAppTimeMilliseconds | ( | ) | const |
Returns total accumulated time in milliseconds (float).
Definition at line 28 of file app_time.cpp.