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