aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-16 21:16:44 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-16 21:16:44 +0300
commitb8f2dcea4de03b21f353240935a3295f237f258f (patch)
tree5473861e52a96d1cf93b7d598b97bbe2b28e8fc8 /src/game.cpp
parent07d000cc54c26001f9f79e5c0d45c2d3c4f614eb (diff)
downloadminetest-b8f2dcea4de03b21f353240935a3295f237f258f.tar.gz
minetest-b8f2dcea4de03b21f353240935a3295f237f258f.tar.bz2
minetest-b8f2dcea4de03b21f353240935a3295f237f258f.zip
Improve debug profiler usage for investigating CPU usage of server
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c415db1e3..276857f80 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1070,6 +1070,8 @@ void the_game(
object_hit_delay_timer -= dtime;
+ g_profiler->add("Elapsed time", dtime * 1000);
+
/*
Log frametime for visualization
*/