Printing some numbers

This commit is contained in:
Stiffly
2015-09-23 15:37:14 +02:00
parent 683b4cc3cf
commit 2cf54819ae
+16 -3
View File
@@ -58,13 +58,26 @@ 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();
double start = glfwGetTime();
EventBroker->Process(type);
double t1 = glfwGetTime() - timeStamp;
LOG_INFO("Events: %d", t1);
double stop = glfwGetTime();
double t1 = stop - start;
LOG_INFO("Events: %f", t1);
start = glfwGetTime();
system->Update(dt);
stop = glfwGetTime();
double t2 = stop - start;
LOG_INFO("Systems: %f", t2);
start = glfwGetTime();
RecursiveUpdate(system, dt, 0);
stop = glfwGetTime();
double t3 = stop - start;
LOG_INFO("Recursive Systems: %f", t3);
}
ProcessEntityRemovals();