diff --git a/src/hello.cpp b/src/hello.cpp index 46b039f..9bcc105 100644 --- a/src/hello.cpp +++ b/src/hello.cpp @@ -42,19 +42,9 @@ #include #include -#include - #include "gfx.hpp" #include "triangle.hpp" -std::chrono::steady_clock::time_point startTime = std::chrono::steady_clock::now(); -float getTime() -{ - std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now(); - std::chrono::duration timeSpan = std::chrono::duration_cast>(now - startTime); - return timeSpan.count(); -} - #include #include "astro/twoBodyMethods.hpp" @@ -114,7 +104,7 @@ int main() glClearColor(0.2, 0.3, 0.3, 1.0); glClear(GL_COLOR_BUFFER_BIT); - triangle.render(getTime()); + triangle.render(glfwGetTime()); glfwSwapBuffers(window); glfwPollEvents();