[C++11] 초간단 시간 측정 클래스
HourMeter.h #pragma once #include #include class HourMeter { public: HourMeter(); ~HourMeter(); void startMeasure(); void endMeasure(); double getLatestDuration(); private: std::chrono::system_clock::time_point begin; std::chrono::system_clock::time_point end; std::chrono::duration result_sec; bool isMeasuring; }; HourMeter.cpp #include "HourMeter.h" HourMeter::HourMeter() : isMeasuring(false) {..