#include #include "test_conf.hpp" #include #include struct timer final { timer() : start{std::chrono::system_clock::now()} {} void elapsed() { auto now = std::chrono::system_clock::now(); std::cout << std::chrono::duration(now - start).count() << " seconds" << std::endl; } private: std::chrono::time_point start; }; template void genericWith(Func func) { timer timer; func(); timer.elapsed(); } TEST_F(WorldBenchmark, UpdateSystems) { genericWith([&]() { world.update(); }); }