#include #include #include //use when to compile on outdated slc #include #include #include using namespace std; class Stopwatch { public: Stopwatch(); ~Stopwatch(); void start(); void stop(); double getRealTime(); double getSysTime(); string formatRealTime(); string formatSysTime(); private: struct tms ftmsStart, ftmsEnd; clock_t fstart,fend; uint32_t fclockTicks; };