#ifndef TIMER_HH #define TIMER_HH #include inline double getDuration(std::chrono::time_point a, std::chrono::time_point b) { return std::chrono::duration(b - a).count(); } #define timestamp(__var__) auto __var__ = std::chrono::system_clock::now(); #include #endif // TIMER_HH