static void timer_start(std::function func, unsigned int interval) { std::thread([func, interval]() { while (true) { auto x = st