10 Time::Time() : deltaTime(0)
12 previousFramerates.resize(maxIterations);
27 return previousFramerates;
30 void Time::OnUpdateBegin()
32 beginTime = float(glfwGetTime());
35 void Time::OnUpdateEnd()
37 endTime = float(glfwGetTime());
38 deltaTime = beginTime > 0.0 ? float(endTime - beginTime) : float(1.0f / 60.0f);
eastl::vector< float > GetPreviousFramerates() const
This method allows you to get a vector of floats from the previous frames their delta times...
IMGUI_API ImGuiIO & GetIO()
int GetMaxIterations() const
This method is used to get the maximum amount of iterations for the previous frame rates...
float GetDeltaTime() const
This method allows you to get the current deltaTime.