Newer
Older
AutoCalibration / utils / TimeCounterUtil.h
tanyue on 30 Jun 589 bytes 20250630 初始提交
#ifndef TIMECOUNTERUTIL_H
#define TIMECOUNTERUTIL_H

#include <QObject>
#include <QTimer>
#include <QDateTime>

class TimeCounterUtil : public QObject
{
public:

    ~TimeCounterUtil() {
        delete  clockTimer;
    };
    TimeCounterUtil(const TimeCounterUtil&)=delete;
    TimeCounterUtil& operator=(const TimeCounterUtil&)=delete;

    static TimeCounterUtil& getInstance() {
        static TimeCounterUtil instance;
        return instance;
    }

    QTimer * clockTimer;

private:
    TimeCounterUtil() {
        clockTimer = new QTimer();
    };

};

#endif // TIMECOUNTERUTIL_H