From a56a8cc899dc90701f1690051da4e4318e95566c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 5 Mar 2024 21:02:23 +0100 Subject: test: remove dead/useless code --- test/time.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 test/time.cpp (limited to 'test/time.cpp') diff --git a/test/time.cpp b/test/time.cpp deleted file mode 100644 index dac8a2e4..00000000 --- a/test/time.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include "app.hpp" -#include "src/timer.hpp" -#include -#include -#include - -namespace floormat { - -using namespace std::chrono_literals; - -void test_app::test_time() -{ -#if 0 - constexpr auto to_ms = [](Ns dt) { return Time::to_seconds(dt); }; - Timer::maybe_start(); - - Debug{} << ""; - auto t1 = Time::now(); - std::this_thread::sleep_for(8ms); - auto t2 = Time::now(); - Debug{} << "- foo1" << to_ms(t2 - t1); - Debug{} << "- foo2" << to_ms(Time::now() - t1); - Debug{} << "- foo3" << to_ms(Timer::since_epoch()); - std::fputc('\t', stdout); -#endif -} - -} // namespace floormat -- cgit v1.2.3