aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 15:01:58 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 15:01:58 +0100
commit68c9e7511ea52c6ee70d052bbdf2923cd68bfa8a (patch)
tree508bfd76d4759eab936300531c7a468aaf740cf2 /src/test
parente49893e8de74534494792955c50ea0eabaf3ba38 (diff)
`make format`wouter/gameloop
Diffstat (limited to 'src/test')
-rw-r--r--src/test/LoopTimerTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/LoopTimerTest.cpp b/src/test/LoopTimerTest.cpp
index f99f109..5e1eccf 100644
--- a/src/test/LoopTimerTest.cpp
+++ b/src/test/LoopTimerTest.cpp
@@ -71,9 +71,8 @@ TEST_F(LoopTimerTest, getCurrentTime) {
auto end_time = steady_clock::now();
// Get the elapsed time in seconds as a double
- auto elapsed_time = std::chrono::duration_cast<elapsed_time_t>(end_time - start_time).count();
-
+ auto elapsed_time
+ = std::chrono::duration_cast<elapsed_time_t>(end_time - start_time).count();
ASSERT_NEAR(loop_timer.get_elapsed_time().count(), elapsed_time, 5);
}
-