diff options
Diffstat (limited to 'UI.cpp')
-rw-r--r-- | UI.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,7 @@ #include "UI.h" #include "cpuload.h" +#include "log.h" #include <algorithm> #include <iostream> @@ -33,6 +34,8 @@ void UI::draw() std::vector<int> cpuloads = get_cpu_loads(); int main_loops_per_second = get_main_loops_per_second(); + // clear screen + std::cout << "\x1B[2J\x1B[H"; std::cout << std::endl; std::cout << "- -- BPM +" << std::endl; std::cout << "Mode: Click __/__ (Clock Internal)" << std::endl; @@ -54,11 +57,14 @@ void UI::draw() std::cout << " Click: ____ BPM" << std::endl; std::cout << fmt::format(" Main loops/s: {}", main_loops_per_second) << std::endl; + + std::cout << "Log:" << std::endl; + std::cout << log_cout.get_log() << std::endl; } void UI::count_main_loops() { ++m_main_loops; - //std::cout << "DEBUG:" << m_main_loops << std::endl; + debug_cout << "DEBUG:" << m_main_loops << std::endl; } |