

#include "tbasictimer.h"
#include "tsystemglobal.h"


TBasicTimer::TBasicTimer(QObject *parent) :
    QObject(parent),
    QBasicTimer()
{
}


void TBasicTimer::start()
{
    tSystemDebug("TBasicTimer::start");
    if (_receiver && _interval > 0) {
        QBasicTimer::start(_interval, _receiver);
    }
}


void TBasicTimer::start(int msec)
{
    if (_receiver && msec > 0) {
        _interval = msec;
        QBasicTimer::start(_interval, _receiver);
    }
}
