From 683b4cc3cfc8a1d95bb81b515b071a1ba3119e32 Mon Sep 17 00:00:00 2001 From: Stiffly Date: Wed, 23 Sep 2015 15:17:20 +0200 Subject: [PATCH] Printing system names. --- src/game/Core/World.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/Core/World.cpp b/src/game/Core/World.cpp index 2ff460a..c22aab3 100644 --- a/src/game/Core/World.cpp +++ b/src/game/Core/World.cpp @@ -58,7 +58,11 @@ void dd::World::Update(double dt) { const std::string &type = pair.first; auto system = pair.second; + LOG_INFO("System: %s", type.c_str()); + double timeStamp = glfwGetTime(); EventBroker->Process(type); + double t1 = glfwGetTime() - timeStamp; + LOG_INFO("Events: %d", t1); system->Update(dt); RecursiveUpdate(system, dt, 0); }