Class for clock. More...
#include <Clock.hpp>
Collaboration diagram for ven::Clock:Public Member Functions | |
| Clock () | |
| ~Clock ()=default | |
| Clock (const Clock &)=delete | |
| Clock & | operator= (const Clock &)=delete |
| Clock (Clock &&)=delete | |
| Clock & | operator= (Clock &&)=delete |
| void | start () |
| void | stop () |
| void | resume () |
| void | update () |
| float | getDeltaTime () const |
| float | getDeltaTimeMS () const |
| float | getFPS () const |
Static Public Member Functions | |
| static std::chrono::high_resolution_clock::time_point | now () |
Private Attributes | |
| TimePoint | m_startTime |
| TimePoint | m_stopTime |
| std::chrono::duration< float > | m_deltaTime {0.F} |
| bool | m_isStopped {false} |
|
inline |
|
default |
|
delete |
|
delete |
|
inlinenodiscard |
Definition at line 38 of file Clock.hpp.
References m_deltaTime.
Referenced by ven::Engine::run().
Here is the caller graph for this function:
|
inlinenodiscard |
Definition at line 39 of file Clock.hpp.
References m_deltaTime.
Referenced by ven::Logger::logExecutionTime().
Here is the caller graph for this function:
|
inlinenodiscard |
Definition at line 40 of file Clock.hpp.
References m_deltaTime.
|
inlinestatic |
|
inline |
Definition at line 32 of file Clock.hpp.
References m_startTime.
Referenced by Clock().
Here is the caller graph for this function:| void ven::Clock::update | ( | ) |
Definition at line 3 of file clock.cpp.
References m_deltaTime, and m_startTime.
Referenced by ven::Logger::logExecutionTime(), and ven::Engine::run().
Here is the caller graph for this function:
|
private |
Definition at line 46 of file Clock.hpp.
Referenced by getDeltaTime(), getDeltaTimeMS(), getFPS(), and update().
|
private |