#pragma once #include enum class TimeUnitT {HOUR, MINUTE, SECOND, MILLISECOND, MICROSECOND, NANOSECOND}; std::string TimeUnitTToString(TimeUnitT u); class StopWatchT { public: void Start(); void Stop(); void Continue(); void PrintTimes(); double TimeInUnit(TimeUnitT u); private: std::chrono::time_point start, end; std::chrono::duration diff; };