Newer
Older
WorkCardReader / utils / TimeCounterUtil.h
tanyue on 18 Jun 2022 545 bytes 20220618 界面调整
#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