From: Daniel Karbach Date: Fri, 28 Aug 2015 14:09:30 +0000 (+0200) Subject: give feedback to stdout when profiling X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=c973988ad1c45333a8c280820b2d7a8d71e088d8;p=blank.git give feedback to stdout when profiling --- diff --git a/src/app/app.cpp b/src/app/app.cpp index 610f995..0e2a639 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -18,6 +18,7 @@ #include "../world/Entity.hpp" #include +#include #include #include #include @@ -63,6 +64,12 @@ void Application::RunT(size_t t) { void Application::RunS(size_t n, size_t t) { for (size_t i = 0; HasState() && i < n; ++i) { Loop(t); + std::cout << '.'; + if (i % 16 == 15) { + std::cout << std::setfill(' ') << std::setw(5) << std::right << (i + 1) << std::endl; + } else { + std::cout << std::flush; + } } }