Class for clock. More...
#include <Clock.hpp>
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().
|
inlinenodiscard |
Definition at line 39 of file Clock.hpp.
References m_deltaTime.
Referenced by ven::Logger::logExecutionTime().
|
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().
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().
|
private |
Definition at line 46 of file Clock.hpp.
Referenced by getDeltaTime(), getDeltaTimeMS(), getFPS(), and update().
|
private |