diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:11:32 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:11:32 +0000 |
commit | 8592dedeef12f1a0ebbdf0692984e04ffc216c98 (patch) | |
tree | 276aa994852424345f88cd10a25b1eca100c594d /application/main.cpp | |
parent | Move stream operators into ns std, add support for Arc (diff) | |
download | ilt-8592dedeef12f1a0ebbdf0692984e04ffc216c98.tar.bz2 ilt-8592dedeef12f1a0ebbdf0692984e04ffc216c98.tar.xz ilt-8592dedeef12f1a0ebbdf0692984e04ffc216c98.zip |
Floating point seconds TickDuration
Diffstat (limited to 'application/main.cpp')
-rw-r--r-- | application/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp index 38874f4..e70eae3 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -97,7 +97,7 @@ public: while (isRunning) { processInputs(); const auto t_end = std::chrono::high_resolution_clock::now(); - const auto t_passed = std::chrono::duration_cast<std::chrono::milliseconds>(t_end - t_start); + const auto t_passed = std::chrono::duration_cast<WorldObject::TickDuration>(t_end - t_start); world.apply(&WorldObject::tick, t_passed); world.apply<CameraController>(&CameraController::updateCamera, &camera, &shader); |