Newer
Older
CasicBioRecNew / utils / TimeCounterUtil.h
#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 * faceCapCounter;
    QTimer * irisCapCounter;
    QTimer * clockCounter;

private:
    TimeCounterUtil()
    {
        faceCapCounter = new QTimer();
        irisCapCounter = new QTimer();
        clockCounter = new QTimer();
    }

};

#endif // TIMECOUNTERUTIL_H