#ifndef SIMULATION_TIME_H #define SIMULATION_TIME_H #include #include #include struct TimerEvent { std::chrono::time_point start; std::chrono::time_point stop; std::chrono::duration total_timespan; }; class SimulationTimer { public: static void eventStartPoint(std::string event_name); static void eventStopPoint(std::string event_name); static void printDurations(); private: static std::map timed_events_; }; #endif /* SIMULATION_TIME_H */