#ifndef TIMECOUNTERUTIL_H #define TIMECOUNTERUTIL_H #include <QObject> #include <QTimer> class TimeCounterUtil : public QObject { public: ~TimeCounterUtil() {}; TimeCounterUtil(const TimeCounterUtil&)=delete; TimeCounterUtil& operator=(const TimeCounterUtil&)=delete; static TimeCounterUtil& getInstance() { static TimeCounterUtil instance; return instance; } QTimer * clockCounter; private: TimeCounterUtil() { clockCounter = new QTimer(); } }; #endif // TIMECOUNTERUTIL_H