aboutsummaryrefslogtreecommitdiff
path: root/src/test/Profiling.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-12 22:45:30 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-12 22:45:30 +0100
commit1d1c256eea43a3d0685919ed2997e10990ef639f (patch)
tree99f85ea9d8852ba3e33a05df699f028f29d3f9d1 /src/test/Profiling.cpp
parent23196be83778973d9688cc5d465e4e4a16476568 (diff)
`make format`
Diffstat (limited to 'src/test/Profiling.cpp')
-rw-r--r--src/test/Profiling.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/Profiling.cpp b/src/test/Profiling.cpp
index eccfd89..f5ae4b1 100644
--- a/src/test/Profiling.cpp
+++ b/src/test/Profiling.cpp
@@ -102,12 +102,14 @@ public:
// Run and profile all systems, return the total time in milliseconds
std::chrono::microseconds run_all_systems() {
std::chrono::microseconds total_microseconds = 0us;
- total_microseconds += time_function("PhysicsSystem", [&]() { physics_sys.fixed_update(); });
+ total_microseconds
+ += time_function("PhysicsSystem", [&]() { physics_sys.fixed_update(); });
total_microseconds
+= time_function("CollisionSystem", [&]() { collision_sys.fixed_update(); });
total_microseconds
+= time_function("ParticleSystem", [&]() { particle_sys.fixed_update(); });
- total_microseconds += time_function("RenderSystem", [&]() { render_sys.frame_update(); });
+ total_microseconds
+ += time_function("RenderSystem", [&]() { render_sys.frame_update(); });
return total_microseconds;
}