aboutsummaryrefslogtreecommitdiff
path: root/client/timetest.cpp
blob: 2e575f2d424588b1321ce218a00c7af83b1c679f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "timetest.h"

TimeTest::TimeTest(QObject *parent) : QObject(parent)
{
    timer = new QTimer(this);
    connect(timer, SIGNAL(timeout()),this,SLOT(myfunction()));
    timer->start(5000);
}

qint16 TimeTest::myfunction()
{
    QTime time = QTime::currentTime();
   qint16 time_text = time.minute();

   return time_text;


}